Example #1
0
 public GetTokenByResourceOwnerCredentialsGrantTypeAction(
     IGrantedTokenRepository grantedTokenRepository,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IAuthenticateResourceOwnerService authenticateResourceOwnerService,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IClientRepository clientRepository,
     IClientHelper clientHelper,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _grantedTokenRepository      = grantedTokenRepository;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator = scopeValidator;
     _authenticateResourceOwnerService = authenticateResourceOwnerService;
     _simpleIdentityServerEventSource  = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _jwtGenerator       = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _clientRepository   = clientRepository;
     _clientHelper       = clientHelper;
     _grantedTokenHelper = grantedTokenHelper;
 }
Example #2
0
 public GetTokenByResourceOwnerCredentialsGrantTypeAction(
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IResourceOwnerAuthenticateHelper resourceOwnerAuthenticateHelper,
     IOAuthEventSource oauthEventSource,
     IAuthenticateClient authenticateClient,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IClientRepository clientRepository,
     IClientHelper clientHelper,
     ITokenStore tokenStore,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator = scopeValidator;
     _resourceOwnerAuthenticateHelper = resourceOwnerAuthenticateHelper;
     _oauthEventSource   = oauthEventSource;
     _authenticateClient = authenticateClient;
     _jwtGenerator       = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _clientRepository   = clientRepository;
     _clientHelper       = clientHelper;
     _tokenStore         = tokenStore;
     _grantedTokenHelper = grantedTokenHelper;
 }
Example #3
0
 public GetTokenByClientCredentialsGrantTypeAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     IClientValidator clientValidator,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IOAuthEventSource oauthEventSource,
     IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator,
     IClientHelper clientHelper,
     IJwtGenerator jwtGenerator,
     ITokenStore tokenStore,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient          = authenticateClient;
     _clientValidator             = clientValidator;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator   = scopeValidator;
     _oauthEventSource = oauthEventSource;
     _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator;
     _clientHelper       = clientHelper;
     _jwtGenerator       = jwtGenerator;
     _tokenStore         = tokenStore;
     _grantedTokenHelper = grantedTokenHelper;
 }
Example #4
0
 public GetTokenByAuthorizationCodeGrantTypeAction(
     IClientValidator clientValidator,
     IAuthorizationCodeStore authorizationCodeStore,
     IConfigurationService configurationService,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IAuthenticateClient authenticateClient,
     IClientHelper clientHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     ITokenStore tokenStore,
     IGrantedTokenHelper grantedTokenHelper,
     IJwtGenerator jwtGenerator)
 {
     _clientValidator             = clientValidator;
     _authorizationCodeStore      = authorizationCodeStore;
     _configurationService        = configurationService;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _authenticateClient          = authenticateClient;
     _clientHelper = clientHelper;
     _simpleIdentityServerEventSource  = simpleIdentityServerEventSource;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _tokenStore         = tokenStore;
     _grantedTokenHelper = grantedTokenHelper;
     _jwtGenerator       = jwtGenerator;
 }
Example #5
0
        public UserSessionManager(string sessionAuthUrl, string keyAuthUrl, X509Certificate2 certificate)
        {
            Certificate = certificate;
            var sessionAuthApiFactory = new AuthenticatorApiFactory(sessionAuthUrl);
            var keyAuthApiFactory     = new AuthenticatorApiFactory(keyAuthUrl);

            _sessionAuthApi = sessionAuthApiFactory.CreateAuthenticationApi(certificate);
            _keyAuthApi     = keyAuthApiFactory.CreateAuthenticationApi(certificate);
        }
 public PostIntrospectionAction(
     IOAuthEventSource oauthEventSource,
     IAuthenticateClient authenticateClient,
     IIntrospectionParameterValidator introspectionParameterValidator,
     ITokenStore tokenStore)
 {
     _oauthEventSource   = oauthEventSource;
     _authenticateClient = authenticateClient;
     _introspectionParameterValidator = introspectionParameterValidator;
     _tokenStore = tokenStore;
 }
 public PostIntrospectionAction(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IIntrospectionParameterValidator introspectionParameterValidator,
     IGrantedTokenRepository grantedTokenRepository)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _introspectionParameterValidator = introspectionParameterValidator;
     _grantedTokenRepository          = grantedTokenRepository;
 }
 public RevokeTokenAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     IGrantedTokenRepository grantedTokenRepository,
     IClientRepository clientRepository)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient     = authenticateClient;
     _grantedTokenRepository = grantedTokenRepository;
     _clientRepository       = clientRepository;
 }
Example #9
0
 public RevokeTokenAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     ITokenStore tokenStore,
     IClientRepository clientRepository)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient = authenticateClient;
     _tokenStore         = tokenStore;
     _clientRepository   = clientRepository;
 }
 public PostIntrospectionAction(
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateClient authenticateClient,
     IIntrospectionParameterValidator introspectionParameterValidator,
     ITokenStore tokenStore)
 {
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _authenticateClient = authenticateClient;
     _introspectionParameterValidator = introspectionParameterValidator;
     _tokenStore = tokenStore;
 }
Example #11
0
 public GetTokenByTicketIdAction(ITicketStore ticketStore, IUmaConfigurationService configurationService,
                                 IUmaServerEventSource umaServerEventSource, IAuthorizationPolicyValidator authorizationPolicyValidator, IAuthenticateInstructionGenerator authenticateInstructionGenerator,
                                 IAuthenticateClient authenticateClient, IJwtGenerator jwtGenerator, IClientHelper clientHelper, ITokenStore tokenStore)
 {
     _ticketStore                      = ticketStore;
     _configurationService             = configurationService;
     _umaServerEventSource             = umaServerEventSource;
     _authorizationPolicyValidator     = authorizationPolicyValidator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient               = authenticateClient;
     _jwtGenerator                     = jwtGenerator;
     _clientHelper                     = clientHelper;
     _tokenStore = tokenStore;
 }
 private void InitializeFakeObjects()
 {
     _clientSecretBasicAuthenticationFake = new Mock <IClientSecretBasicAuthentication>();
     _clientSecretPostAuthenticationFake  = new Mock <IClientSecretPostAuthentication>();
     _clientAssertionAuthenticationFake   = new Mock <IClientAssertionAuthentication>();
     _clientTlsAuthenticationStub         = new Mock <IClientTlsAuthentication>();
     _clientRepositoryStub = new Mock <IClientRepository>();
     _oauthEventSource     = new Mock <IOAuthEventSource>();
     _authenticateClient   = new AuthenticateClient(
         _clientSecretBasicAuthenticationFake.Object,
         _clientSecretPostAuthenticationFake.Object,
         _clientAssertionAuthenticationFake.Object,
         _clientTlsAuthenticationStub.Object,
         _clientRepositoryStub.Object,
         _oauthEventSource.Object);
 }
 public GetTokenByRefreshTokenGrantTypeAction(
     IClientHelper clientHelper,
     IOAuthEventSource oauthEventSource,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     ITokenStore tokenStore,
     IJwtGenerator jwtGenerator,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient)
 {
     _clientHelper                = clientHelper;
     _oauthEventSource            = oauthEventSource;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _tokenStore   = tokenStore;
     _jwtGenerator = jwtGenerator;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient = authenticateClient;
 }
 public GetTokenByClientCredentialsGrantTypeAction(
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IAuthenticateClient authenticateClient,
     IClientValidator clientValidator,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IScopeValidator scopeValidator,
     IGrantedTokenRepository grantedTokenRepository,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IClientCredentialsGrantTypeParameterValidator clientCredentialsGrantTypeParameterValidator,
     IClientHelper clientHelper,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _authenticateClient          = authenticateClient;
     _clientValidator             = clientValidator;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _scopeValidator                  = scopeValidator;
     _grantedTokenRepository          = grantedTokenRepository;
     _simpleIdentityServerEventSource = simpleIdentityServerEventSource;
     _clientCredentialsGrantTypeParameterValidator = clientCredentialsGrantTypeParameterValidator;
     _clientHelper       = clientHelper;
     _grantedTokenHelper = grantedTokenHelper;
 }
 public GetTokenByAuthorizationCodeGrantTypeAction(
     IClientValidator clientValidator,
     IAuthorizationCodeRepository authorizationCodeRepository,
     IConfigurationService configurationService,
     IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper,
     IGrantedTokenRepository grantedTokenRepository,
     IAuthenticateClient authenticateClient,
     IClientHelper clientHelper,
     ISimpleIdentityServerEventSource simpleIdentityServerEventSource,
     IAuthenticateInstructionGenerator authenticateInstructionGenerator,
     IGrantedTokenHelper grantedTokenHelper)
 {
     _clientValidator             = clientValidator;
     _authorizationCodeRepository = authorizationCodeRepository;
     _configurationService        = configurationService;
     _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper;
     _grantedTokenRepository      = grantedTokenRepository;
     _authenticateClient          = authenticateClient;
     _clientHelper = clientHelper;
     _simpleIdentityServerEventSource  = simpleIdentityServerEventSource;
     _authenticateInstructionGenerator = authenticateInstructionGenerator;
     _grantedTokenHelper = grantedTokenHelper;
 }
Example #16
0
 public ClientAuthenticationHelper(IAuthenticateClient authenticateClient)
 {
     _authenticateClient = authenticateClient;
 }
Example #17
0
 public UserSessionManager(IAuthenticateClient sessionAuthApi, IAuthenticateClient keyAuthApi, X509Certificate2 certificate)
 {
     Certificate     = certificate;
     _sessionAuthApi = sessionAuthApi;
     _keyAuthApi     = keyAuthApi;
 }