public SmsAuthenticateResourceOwnerService( IResourceOwnerRepository resourceOwnerRepository, IConfirmationCodeStore confirmationCodeStore) { _resourceOwnerRepository = resourceOwnerRepository; _confirmationCodeStore = confirmationCodeStore; }
public AddResourceOwnerAction( IResourceOwnerRepository resourceOwnerRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _resourceOwnerRepository = resourceOwnerRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public ResourceRequestAuthorizer(IOAuthServiceLocator serviceLocator) { _consumerRepository = serviceLocator.ConsumerRepository; _resourceOwnerRepository = serviceLocator.ResourceOwnerRepository; _issuer = serviceLocator.Issuer; _configuration = serviceLocator.Configuration; }
public RefreshTokenRequestAuthorizer(IConsumerRepository consumerRepository, IResourceOwnerRepository resourceOwnerRepository, IOAuthIssuer issuer, IConfiguration configuration) { _consumerRepository = consumerRepository; _resourceOwnerRepository = resourceOwnerRepository; _issuer = issuer; _configuration = configuration; }
public SmsAuthenticationOperation(IGenerateAndSendSmsCodeOperation generateAndSendSmsCodeOperation, IResourceOwnerRepository resourceOwnerRepository, IUserActions userActions, ISubjectBuilder subjectBuilder, SmsAuthenticationOptions smsAuthenticationOptions) { _generateAndSendSmsCodeOperation = generateAndSendSmsCodeOperation; _resourceOwnerRepository = resourceOwnerRepository; _userActions = userActions; }
public ResourceRequestAuthorizer(IOAuthServiceLocator serviceLocator) { _consumerRepository = serviceLocator.ConsumerRepository; _resourceOwnerRepository = serviceLocator.ResourceOwnerRepository; _issuer = serviceLocator.Issuer; _configuration = serviceLocator.Configuration; }
public UpdateUserClaimsOperation( IResourceOwnerRepository resourceOwnerRepository, IClaimRepository claimRepository) { _resourceOwnerRepository = resourceOwnerRepository; _claimRepository = claimRepository; }
public DeleteResourceOwnerAction( IResourceOwnerRepository resourceOwnerRepository, IManagerEventSource managerEventSource) { _resourceOwnerRepository = resourceOwnerRepository; _managerEventSource = managerEventSource; }
public UpdateUserOperation( IResourceOwnerRepository resourceOwnerRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _resourceOwnerRepository = resourceOwnerRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public GenerateAuthorizationResponse( IAuthorizationCodeStore authorizationCodeStore, ITokenStore tokenStore, IParameterParserHelper parameterParserHelper, IJwtGenerator jwtGenerator, IGrantedTokenGeneratorHelper grantedTokenGeneratorHelper, IConsentHelper consentHelper, IOAuthEventSource oauthEventSource, IAuthorizationFlowHelper authorizationFlowHelper, IClientHelper clientHelper, IGrantedTokenHelper grantedTokenHelper, IResourceOwnerRepository resourceOwnerRepository) { _authorizationCodeStore = authorizationCodeStore; _tokenStore = tokenStore; _parameterParserHelper = parameterParserHelper; _jwtGenerator = jwtGenerator; _grantedTokenGeneratorHelper = grantedTokenGeneratorHelper; _consentHelper = consentHelper; _oauthEventSource = oauthEventSource; _authorizationFlowHelper = authorizationFlowHelper; _clientHelper = clientHelper; _grantedTokenHelper = grantedTokenHelper; _resourceOwnerRepository = resourceOwnerRepository; }
public RefreshTokenRequestAuthorizer(IConsumerRepository consumerRepository, IResourceOwnerRepository resourceOwnerRepository, IOAuthIssuer issuer, IConfiguration configuration) { _consumerRepository = consumerRepository; _resourceOwnerRepository = resourceOwnerRepository; _issuer = issuer; _configuration = configuration; }
/// <summary> /// Initializes a new instance of the <see cref="AuthenticateController"/> class. /// </summary> /// <param name="dataProtectionProvider">The data protection provider.</param> /// <param name="urlHelperFactory">The URL helper factory.</param> /// <param name="actionContextAccessor">The action context accessor.</param> /// <param name="eventPublisher">The event publisher.</param> /// <param name="authenticationService">The authentication service.</param> /// <param name="authenticationSchemeProvider">The authentication scheme provider.</param> /// <param name="resourceOwnerServices">The resource owner services.</param> /// <param name="twoFactorAuthenticationHandler">The two factor authentication handler.</param> /// <param name="subjectBuilder">The subject builder.</param> /// <param name="authorizationCodeStore">The authorization code store.</param> /// <param name="scopeRepository">The scope repository.</param> /// <param name="tokenStore">The token store.</param> /// <param name="consentRepository">The consent repository.</param> /// <param name="confirmationCodeStore">The confirmation code store.</param> /// <param name="clientStore">The client store.</param> /// <param name="resourceOwnerRepository">The resource owner repository.</param> /// <param name="jwksStore"></param> /// <param name="accountFilters">The account filters.</param> /// <param name="logger">The controller logger.</param> /// <param name="runtimeSettings">The runtime settings.</param> public AuthenticateController( IDataProtectionProvider dataProtectionProvider, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IEventPublisher eventPublisher, IAuthenticationService authenticationService, IAuthenticationSchemeProvider authenticationSchemeProvider, IEnumerable <IAuthenticateResourceOwnerService> resourceOwnerServices, ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler, ISubjectBuilder subjectBuilder, IAuthorizationCodeStore authorizationCodeStore, IScopeRepository scopeRepository, ITokenStore tokenStore, IConsentRepository consentRepository, IConfirmationCodeStore confirmationCodeStore, IClientStore clientStore, IResourceOwnerRepository resourceOwnerRepository, IJwksStore jwksStore, IEnumerable <AccountFilter> accountFilters, ILogger <AuthenticateController> logger, RuntimeSettings runtimeSettings) : base( dataProtectionProvider, urlHelperFactory, actionContextAccessor, eventPublisher, authenticationService, authenticationSchemeProvider, twoFactorAuthenticationHandler, authorizationCodeStore, consentRepository, scopeRepository, tokenStore, resourceOwnerRepository, confirmationCodeStore, clientStore, jwksStore, subjectBuilder, accountFilters, logger, runtimeSettings) { _eventPublisher = eventPublisher; _logger = logger; var services = resourceOwnerServices.ToArray(); _resourceOwnerServices = services; _localOpenIdAuthentication = new LocalOpenIdUserAuthenticationAction( authorizationCodeStore, services, consentRepository, tokenStore, scopeRepository, clientStore, jwksStore, eventPublisher, logger); }
public GenerateAndSendCodeAction( IResourceOwnerRepository resourceOwnerRepository, IConfirmationCodeStore confirmationCodeStore, ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler) { _resourceOwnerRepository = resourceOwnerRepository; _confirmationCodeStore = confirmationCodeStore; _twoFactorAuthenticationHandler = twoFactorAuthenticationHandler; }
public AddUserOperation( IResourceOwnerRepository resourceOwnerRepository, IClaimRepository claimRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _resourceOwnerRepository = resourceOwnerRepository; _claimRepository = claimRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public LocalOpenIdUserAuthenticationAction( IAuthenticateResourceOwnerService authenticateResourceOwnerService, IResourceOwnerRepository resourceOwnerRepository, IAuthenticateHelper authenticateHelper) { _authenticateResourceOwnerService = authenticateResourceOwnerService; _resourceOwnerRepository = resourceOwnerRepository; _authenticateHelper = authenticateHelper; }
public LoginCallbackAction( IResourceOwnerRepository resourceOwnerRepository, IClaimRepository claimRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _resourceOwnerRepository = resourceOwnerRepository; _claimRepository = claimRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public ExternalOpenIdUserAuthenticationAction( IAuthenticateHelper authenticateHelper, IResourceOwnerRepository resourceOwnerRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService, IClaimRepository claimRepository) { _authenticateHelper = authenticateHelper; _resourceOwnerRepository = resourceOwnerRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; _claimRepository = claimRepository; }
public GenerateAndSendCodeAction( IResourceOwnerRepository resourceOwnerRepository, IConfirmationCodeRepository confirmationCodeRepository, ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _resourceOwnerRepository = resourceOwnerRepository; _confirmationCodeRepository = confirmationCodeRepository; _twoFactorAuthenticationHandler = twoFactorAuthenticationHandler; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public AddUserOperation( RuntimeSettings settings, IResourceOwnerRepository resourceOwnerRepository, IEnumerable <IAccountFilter> accountFilters, ISubjectBuilder subjectBuilder, IEventPublisher eventPublisher) { _settings = settings; _resourceOwnerRepository = resourceOwnerRepository; _subjectBuilder = subjectBuilder; _accountFilters = accountFilters.ToArray(); _eventPublisher = eventPublisher; }
public GetTokenByRefreshTokenGrantTypeAction( IEventPublisher eventPublisher, ITokenStore tokenStore, IJwksStore jwksRepository, IResourceOwnerRepository resourceOwnerRepository, IClientStore clientStore) { _eventPublisher = eventPublisher; _tokenStore = tokenStore; _jwksRepository = jwksRepository; _resourceOwnerRepository = resourceOwnerRepository; _clientStore = clientStore; _authenticateClient = new AuthenticateClient(clientStore, jwksRepository); }
public AddUserOperation(IResourceOwnerRepository resourceOwnerRepository, IClaimRepository claimRepository, ILinkProfileAction linkProfileAction, IAccountFilter accountFilter, IOpenIdEventSource openIdEventSource, IEnumerable <IUserClaimsEnricher> userClaimsEnricherLst, ISubjectBuilder subjectBuilder) { _resourceOwnerRepository = resourceOwnerRepository; _claimRepository = claimRepository; _linkProfileAction = linkProfileAction; _accountFilter = accountFilter; _openidEventSource = openIdEventSource; _userClaimsEnricherLst = userClaimsEnricherLst; _subjectBuilder = subjectBuilder; }
public UsersController(IGrantedTokenValidator grantedTokenValidator, IGrantedTokenRepository grantedTokenRepository, IRequestBuilder requestBuilder, IHostingEnvironment hostingEnvironment, IResourceOwnerRepository resourceOwnerRepository, IAuthenticateResourceOwnerService authenticateResourceOwnerService, ISumupClient sumUpClient) { _grantedTokenValidator = grantedTokenValidator; _grantedTokenRepository = grantedTokenRepository; _requestBuilder = requestBuilder; _hostingEnvironment = hostingEnvironment; _resourceOwnerRepository = resourceOwnerRepository; _authenticateResourceOwnerService = authenticateResourceOwnerService; _sumUpClient = sumUpClient; }
public TokenActions( RuntimeSettings simpleAuthOptions, IAuthorizationCodeStore authorizationCodeStore, IClientStore clientStore, IScopeStore scopeRepository, IJwksStore jwksStore, IResourceOwnerRepository resourceOwnerRepository, IEnumerable <IAuthenticateResourceOwnerService> resourceOwnerServices, IEventPublisher eventPublisher, ITokenStore tokenStore, IDeviceAuthorizationStore deviceAuthorizationStore, ILogger logger) { _getTokenByDeviceAuthorizationTypeAction = new GetTokenByDeviceAuthorizationTypeAction( deviceAuthorizationStore, tokenStore, jwksStore, clientStore, eventPublisher, logger); _getTokenByResourceOwnerCredentialsGrantType = new GetTokenByResourceOwnerCredentialsGrantTypeAction( clientStore, scopeRepository, tokenStore, jwksStore, resourceOwnerServices, eventPublisher, logger); _getTokenByAuthorizationCodeGrantTypeAction = new GetTokenByAuthorizationCodeGrantTypeAction( authorizationCodeStore, simpleAuthOptions, clientStore, eventPublisher, tokenStore, jwksStore); _getTokenByRefreshTokenGrantTypeAction = new GetTokenByRefreshTokenGrantTypeAction( eventPublisher, tokenStore, jwksStore, resourceOwnerRepository, clientStore); _authenticateClient = new AuthenticateClient(clientStore, jwksStore); _revokeTokenAction = new RevokeTokenAction(clientStore, tokenStore, jwksStore, logger); _jwksStore = jwksStore; _eventPublisher = eventPublisher; _tokenStore = tokenStore; }
public SmsAuthenticationOperation( RuntimeSettings settings, ISmsClient smsClient, IConfirmationCodeStore confirmationCodeStore, IResourceOwnerRepository resourceOwnerRepository, ISubjectBuilder subjectBuilder, IAccountFilter[] accountFilters, IEventPublisher eventPublisher, ILogger logger) { _salt = settings.Salt; _generateAndSendSmsCodeOperation = new GenerateAndSendSmsCodeOperation( smsClient, confirmationCodeStore, logger); _resourceOwnerRepository = resourceOwnerRepository; _addUser = new AddUserOperation(settings, resourceOwnerRepository, accountFilters, subjectBuilder, eventPublisher); _subjectBuilder = subjectBuilder; }
/// <summary> /// Initializes a new instance of the <see cref="CodeController"/> class. /// </summary> /// <param name="settings"></param> /// <param name="smsClient">The SMS client.</param> /// <param name="confirmationCodeStore">The confirmation code store.</param> /// <param name="resourceOwnerRepository">The resource owner repository.</param> /// <param name="subjectBuilder">The subject builder.</param> /// <param name="accountFilters">The account filters.</param> /// <param name="eventPublisher">The event publisher.</param> /// <param name="logger">The logger</param> public CodeController( RuntimeSettings settings, ISmsClient smsClient, IConfirmationCodeStore confirmationCodeStore, IResourceOwnerRepository resourceOwnerRepository, ISubjectBuilder subjectBuilder, IEnumerable <IAccountFilter> accountFilters, IEventPublisher eventPublisher, ILogger <CodeController> logger) { _smsAuthenticationOperation = new SmsAuthenticationOperation( settings, smsClient, confirmationCodeStore, resourceOwnerRepository, subjectBuilder, accountFilters.ToArray(), eventPublisher, logger); }
public ConfirmConsentAction( IConsentRepository consentRepository, IClientRepository clientRepository, IScopeRepository scopeRepository, IResourceOwnerRepository resourceOwnerRepository, IParameterParserHelper parameterParserHelper, IActionResultFactory actionResultFactory, IGenerateAuthorizationResponse generateAuthorizationResponse, IConsentHelper consentHelper, IOpenIdEventSource openidEventSource) { _consentRepository = consentRepository; _clientRepository = clientRepository; _scopeRepository = scopeRepository; _resourceOwnerRepository = resourceOwnerRepository; _parameterParserHelper = parameterParserHelper; _actionResultFactory = actionResultFactory; _generateAuthorizationResponse = generateAuthorizationResponse; _consentHelper = consentHelper; _openidEventSource = openidEventSource; }
/// <summary> /// Initializes a new instance of the <see cref="TokenController"/> class. /// </summary> /// <param name="settings">The settings.</param> /// <param name="authorizationCodeStore">The authorization code store.</param> /// <param name="clientStore">The client store.</param> /// <param name="scopeRepository">The scope repository.</param> /// <param name="resourceOwnerRepository"></param> /// <param name="authenticateResourceOwnerServices">The authenticate resource owner services.</param> /// <param name="tokenStore">The token store.</param> /// <param name="ticketStore">The ticket store.</param> /// <param name="jwksStore"></param> /// <param name="resourceSetRepository">The resource set repository.</param> /// <param name="deviceAuthorizationStore">The device authorization store.</param> /// <param name="eventPublisher">The event publisher.</param> /// <param name="logger">The logger.</param> public TokenController( RuntimeSettings settings, IAuthorizationCodeStore authorizationCodeStore, IClientStore clientStore, IScopeRepository scopeRepository, IResourceOwnerRepository resourceOwnerRepository, IEnumerable <IAuthenticateResourceOwnerService> authenticateResourceOwnerServices, ITokenStore tokenStore, ITicketStore ticketStore, IJwksStore jwksStore, IResourceSetRepository resourceSetRepository, IDeviceAuthorizationStore deviceAuthorizationStore, IEventPublisher eventPublisher, ILogger <TokenController> logger) { _logger = logger; _tokenActions = new TokenActions( settings, authorizationCodeStore, clientStore, scopeRepository, jwksStore, resourceOwnerRepository, authenticateResourceOwnerServices, eventPublisher, tokenStore, deviceAuthorizationStore, logger); _umaTokenActions = new UmaTokenActions( ticketStore, settings, clientStore, scopeRepository, tokenStore, resourceSetRepository, jwksStore, eventPublisher, logger); }
/// <summary> /// Initializes a new instance of the <see cref="ResourceOwnersController"/> class. /// </summary> /// <param name="settings"></param> /// <param name="subjectBuilder"></param> /// <param name="resourceOwnerRepository">The resource owner repository.</param> /// <param name="tokenStore">The token cache</param> /// <param name="jwksRepository"></param> /// <param name="clientRepository"></param> /// <param name="accountFilters">The account filters.</param> /// <param name="eventPublisher">The event publisher.</param> public ResourceOwnersController( RuntimeSettings settings, ISubjectBuilder subjectBuilder, IResourceOwnerRepository resourceOwnerRepository, ITokenStore tokenStore, IJwksStore jwksRepository, IClientRepository clientRepository, IEnumerable <AccountFilter> accountFilters, IEventPublisher eventPublisher) { _refreshOperation = new GetTokenByRefreshTokenGrantTypeAction( eventPublisher, tokenStore, jwksRepository, resourceOwnerRepository, clientRepository); _resourceOwnerRepository = resourceOwnerRepository; _tokenStore = tokenStore; _clientRepository = clientRepository; _eventPublisher = eventPublisher; _addUserOperation = new AddUserOperation(settings, resourceOwnerRepository, accountFilters, subjectBuilder, eventPublisher); }
/// <summary> /// Initializes a new instance of the <see cref="UserController"/> class. /// </summary> /// <param name="resourceOwnerRepository">The resource owner repository.</param> /// <param name="authenticationService">The authentication service.</param> /// <param name="authenticationSchemeProvider">The authentication scheme provider.</param> /// <param name="urlHelperFactory">The URL helper factory.</param> /// <param name="actionContextAccessor">The action context accessor.</param> /// <param name="consentRepository">The consent repository.</param> /// <param name="scopeRepository"></param> /// <param name="twoFactorAuthenticationHandler">The two factor authentication handler.</param> /// <param name="logger">The logger</param> public UserController( IResourceOwnerRepository resourceOwnerRepository, IAuthenticationService authenticationService, IAuthenticationSchemeProvider authenticationSchemeProvider, IUrlHelperFactory urlHelperFactory, IActionContextAccessor actionContextAccessor, IConsentRepository consentRepository, IScopeRepository scopeRepository, ITwoFactorAuthenticationHandler twoFactorAuthenticationHandler, ILogger <UserController> logger) : base(authenticationService) { _resourceOwnerRepository = resourceOwnerRepository; _getUserOperation = new GetUserOperation(resourceOwnerRepository, logger); _updateUserTwoFactorAuthenticatorOperation = new UpdateUserTwoFactorAuthenticatorOperation(resourceOwnerRepository, logger); _authenticationSchemeProvider = authenticationSchemeProvider; _consentRepository = consentRepository; _scopeRepository = scopeRepository; _urlHelper = urlHelperFactory.GetUrlHelper(actionContextAccessor.ActionContext !); _twoFactorAuthenticationHandler = twoFactorAuthenticationHandler; _logger = logger; }
public ConfirmConsentAction( IConsentRepository consentRepository, IClientRepository clientRepository, IScopeRepository scopeRepository, IResourceOwnerRepository resourceOwnerRepository, IParameterParserHelper parameterParserHelper, IActionResultFactory actionResultFactory, IGenerateAuthorizationResponse generateAuthorizationResponse, IConsentHelper consentHelper, ISimpleIdentityServerEventSource simpleIdentityServerEventSource, IAuthenticateResourceOwnerService authenticateResourceOwnerService) { _consentRepository = consentRepository; _clientRepository = clientRepository; _scopeRepository = scopeRepository; _resourceOwnerRepository = resourceOwnerRepository; _parameterParserHelper = parameterParserHelper; _actionResultFactory = actionResultFactory; _generateAuthorizationResponse = generateAuthorizationResponse; _consentHelper = consentHelper; _simpleIdentityServerEventSource = simpleIdentityServerEventSource; _authenticateResourceOwnerService = authenticateResourceOwnerService; }
public CustomAuthenticateResourceOwnerService(IResourceOwnerRepository resourceOwnerRepository) { _resourceOwnerRepository = resourceOwnerRepository; }
private void InitializeFakeObjects(params ResourceOwner[] resourceOwners) { _resourceOwnerRepositoryStub = new InMemoryResourceOwnerRepository(string.Empty, new List <ResourceOwner>(resourceOwners)); }