/// <summary> /// Initializes a new instance of the <see cref="DeviceAuthorizationController"/> class. /// </summary> /// <param name="settings">The runtime settings.</param> /// <param name="deviceAuthorizationStore">The device authorization store.</param> /// <param name="clientStore">The client store.</param> /// <param name="logger">The logger.</param> public DeviceAuthorizationController( RuntimeSettings settings, IClientStore clientStore, IDeviceAuthorizationStore deviceAuthorizationStore, ILogger <DeviceController> logger) { _actions = new DeviceAuthorizationActions(settings, deviceAuthorizationStore, clientStore, logger); }
public GetTokenByDeviceAuthorizationTypeAction( IDeviceAuthorizationStore deviceAuthorizationStore, ITokenStore tokenStore, IJwksStore jwksStore, IClientStore clientStore, IEventPublisher eventPublisher, ILogger logger) { _deviceAuthorizationStore = deviceAuthorizationStore; _tokenStore = tokenStore; _jwksStore = jwksStore; _clientStore = clientStore; _eventPublisher = eventPublisher; _logger = logger; }
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; }
/// <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="DeviceController"/> class. /// </summary> /// <param name="deviceAuthorizationStore">The device authorization store.</param> /// <param name="logger">The logger.</param> public DeviceController(IDeviceAuthorizationStore deviceAuthorizationStore, ILogger <DeviceController> logger) { _deviceAuthorizationStore = deviceAuthorizationStore; _logger = logger; }