Esempio n. 1
0
 public JwtTokenValidator(IJwtTokenHandler jwtTokenHandler, IOptions <JwtIssuerOptions> jwtOptions, IOptions <AuthSettings> authSettings)
 {
     _jwtTokenHandler = jwtTokenHandler;
     _jwtOptions      = jwtOptions.Value;
     _authSettings    = authSettings.Value;
 }
 internal JwtFactory(IJwtTokenHandler jwtTokenHandler, IOptions <JwtIssuerOptions> jwtOptions)
 {
     _jwtTokenHandler = jwtTokenHandler;
     _jwtOptions      = jwtOptions.Value;
     ThrowIfInvalidOptions(_jwtOptions);
 }
Esempio n. 3
0
 public JwtFactory(IOptions <JwtIssuerOptions> jwtOptions)
 {
     _jwtOptions = jwtOptions.Value;
     ThrowIfInvalidOptions(_jwtOptions);
 }