public ClientCredentialsAuthorization(OAuth2 reference, IClientAccountStorage storage)
 {
     _reference = reference;
     _storage   = storage;
 }
 public PasswordAuthorization(OAuth2 reference, IClientAccountStorage clientStorage, IUserAccountStorage userStorage)
 {
     _reference     = reference;
     _clientStorage = clientStorage;
     _userStorage   = userStorage;
 }
Exemple #3
0
 public AccessTokenValidator(string secret, OAuth2 reference)
 {
     _decoder   = new JwtBuilder().WithSecret(secret).MustVerifySignature();
     _reference = reference;
 }
Exemple #4
0
 public RefreshTokenAuthorization(OAuth2 reference, IClientAccountStorage clientStorage, IRefreshTokenStorage refreshStorage)
 {
     _clientStorage  = clientStorage;
     _refreshStorage = refreshStorage;
     _reference      = reference;
 }