Example #1
0
 public ServiceAuthenticatorHost(IJwtTokenHandler jwtTokenHandler,
                                 JwtTokenSettings jwtTokenSettings,
                                 ServiceSettings serviceSettings)
 {
     _jwtTokenHandler  = jwtTokenHandler;
     _jwtTokenSettings = jwtTokenSettings;
     _serviceSettings  = serviceSettings;
 }
Example #2
0
 public JwtTokenHandler(JwtTokenSettings settings)
 {
     _settings = settings;
     if (_settings.UseRsa)
     {
         InitializeRsa();
     }
     else
     {
         InitializeHmac();
     }
     InitializeJwtParameters();
 }