public TokenValidator(
            IClientStore clients,
            IProfileService profile,
            IReferenceTokenStore referenceTokenStore,
            IRefreshTokenStore refreshTokenStore,
            ICustomTokenValidator customValidator,
            IKeyMaterialService keys,
            ISystemClock clock,
            ILogger <TokenValidator> logger,
            PartyDetailsOptions partyDetailsOptions,
            IdentityServerOptions options)
        {
            _clients             = clients;
            _profile             = profile;
            _referenceTokenStore = referenceTokenStore;
            _refreshTokenStore   = refreshTokenStore;
            _customValidator     = customValidator;
            _keys   = keys;
            _clock  = clock;
            _logger = logger;

            _partyDetailsOptions = partyDetailsOptions;
            _options             = options;

            _log = new TokenValidationLog();
        }
Example #2
0
 public JwtSecretValidator(ILogger <JwtSecretValidator> logger,
                           PartyDetailsOptions partyDetailsOptions,
                           IDefaultJwtValidator genericJwtValidator)
 {
     _partyDetailsOptions = partyDetailsOptions;
     _genericJwtValidator = genericJwtValidator;
     _logger = logger;
 }
Example #3
0
 public AuthorizationRegistryClient(ITokenClient tokenClient,
                                    AuthorizationRegistryClientOptions authorizationRegistryClientOptions,
                                    PartyDetailsOptions partyDetailsOptions,
                                    ILogger <AuthorizationRegistryClient> logger)
 {
     _logger      = logger;
     _tokenClient = tokenClient;
     _authorizationRegistryClientOptions = authorizationRegistryClientOptions;
     _partyDetailsOptions = partyDetailsOptions;
 }
Example #4
0
 public SchemeOwnerClient(ITokenClient tokenClient,
                          SchemeOwnerClientOptions schemeOwnerClientOptions,
                          PartyDetailsOptions partyDetailsOptions,
                          ILogger <SchemeOwnerClient> logger)
 {
     _logger      = logger;
     _tokenClient = tokenClient;
     _schemeOwnerClientOptions = schemeOwnerClientOptions;
     _partyDetailsOptions      = partyDetailsOptions;
 }
 public SessionHandleService(IHttpContextAccessor httpContext,
                             HttpClient httpClient,
                             SchemeOwnerIdentityProviderOptions idpOptions,
                             SpaOptions spaOptions,
                             PartyDetailsOptions partyDetailsOptions)
 {
     _httpContext         = httpContext;
     _httpClient          = httpClient;
     _idpOptions          = idpOptions;
     _spaOptions          = spaOptions;
     _partyDetailsOptions = partyDetailsOptions;
 }
Example #6
0
 public JweRequestValidator(
     IHttpContextAccessor contextAccessor,
     ILogger <JweRequestValidator> logger,
     IPrivateKeyVault privateKeyVault,
     IAuthorizeDefaultJwtValidator defaultJwtValidator,
     IAssertionManager assertionManager,
     PartyDetailsOptions partyDetailsOptions)
     : base(contextAccessor, logger)
 {
     _privateKeyVault     = privateKeyVault;
     _defaultJwtValidator = defaultJwtValidator;
     _assertionManager    = assertionManager;
     _audience            = partyDetailsOptions.ClientId;
 }
 public TokenService(
     IClaimsService claimsProvider,
     IReferenceTokenStore referenceTokenStore,
     ITokenCreationService creationService,
     IHttpContextAccessor contextAccessor,
     ISystemClock clock,
     ILogger <TokenService> logger,
     PartyDetailsOptions partyDetailsOptions,
     SchemeOwnerIdentityProviderOptions idpOptions)
 {
     _context             = contextAccessor;
     _claimsProvider      = claimsProvider;
     _referenceTokenStore = referenceTokenStore;
     _creationService     = creationService;
     _clock  = clock;
     _logger = logger;
     _partyDetailsOptions = partyDetailsOptions;
     _idpOptions          = idpOptions;
 }
 public ResponseGeneratorMock(IResponseJwtBuilder responseJwtBuilder, PartyDetailsOptions options)
 {
     _responseJwtBuilder = responseJwtBuilder;
     _options            = options;
 }