コード例 #1
0
    public TokenValidator(
        IdentityServerOptions options,
        IIssuerNameService issuerNameService,
        IClientStore clients,
        IProfileService profile,
        IReferenceTokenStore referenceTokenStore,
        ICustomTokenValidator customValidator,
        IKeyMaterialService keys,
        ISessionCoordinationService sessionCoordinationService,
        ISystemClock clock,
        ILogger <TokenValidator> logger)
    {
        _options             = options;
        _issuerNameService   = issuerNameService;
        _clients             = clients;
        _profile             = profile;
        _referenceTokenStore = referenceTokenStore;
        _customValidator     = customValidator;
        _keys = keys;
        _sessionCoordinationService = sessionCoordinationService;
        _clock  = clock;
        _logger = logger;

        _log = new TokenValidationLog();
    }
コード例 #2
0
        public TokenValidator(
            IdentityServerOptions options,
            IHttpContextAccessor context,
            IClientStore clients,
            IProfileService profile,
            IReferenceTokenStore referenceTokenStore,
            IRefreshTokenStore refreshTokenStore,
            ICustomTokenValidator customValidator,
            IKeyMaterialService keys,
            ISystemClock clock,
            ILogger <TokenValidator> logger)
        {
            _options             = options;
            _context             = context;
            _clients             = clients;
            _profile             = profile;
            _referenceTokenStore = referenceTokenStore;
            _refreshTokenStore   = refreshTokenStore;
            _customValidator     = customValidator;
            _keys   = keys;
            _clock  = clock;
            _logger = logger;

            _log = new TokenValidationLog();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        // todo: remove in 3.0.0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
        {
            _options         = options;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;

            _log = new TokenValidationLog();
        }
コード例 #5
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService owinEnvironment)
        {
            _options         = options;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;
            _context         = new OwinContext(owinEnvironment.Environment);

            _log = new TokenValidationLog();
        }
コード例 #6
0
        public TokenValidator(IdentityServerContext context, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, IEnumerable <IValidationKeysStore> keys, ILogger <TokenValidator> logger)
        {
            _context         = context;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;
            _keys            = keys;
            _logger          = logger;

            _log = new TokenValidationLog();
        }
コード例 #7
0
        public TokenValidator(IdentityServerOptions options, IHttpContextAccessor context, IClientStore clients, IPersistedGrantService grants, ICustomTokenValidator customValidator, IKeyMaterialService keys, ILogger <TokenValidator> logger)
        {
            _options         = options;
            _context         = context;
            _clients         = clients;
            _grants          = grants;
            _customValidator = customValidator;
            _keys            = keys;
            _logger          = logger;

            _log = new TokenValidationLog();
        }
コード例 #8
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService owinEnvironment, ISigningKeyService keyService, ICertificateSigningKeyService certificateKeyService)
        {
            _options               = options;
            _clients               = clients;
            _tokenHandles          = tokenHandles;
            _customValidator       = customValidator;
            _context               = new OwinContext(owinEnvironment.Environment);
            _keyService            = keyService;
            _certificateKeyService = certificateKeyService;

            _log = new TokenValidationLog();
        }
コード例 #9
0
        public TokenValidator(IdentityServerOptions options, IdentityServerContext context, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, ISigningKeyService keyService, ILogger <TokenValidator> logger)
        {
            _options         = options;
            _context         = context;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;
            _keyService      = keyService;
            _logger          = logger;

            _log = new TokenValidationLog();
        }
コード例 #10
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, string issuerUri, ISigningKeyService keyService)
        {
            if (string.IsNullOrEmpty(issuerUri))
            {
                throw new ArgumentNullException("issuerUri");
            }

            _options         = options;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;
            _issuerUri       = issuerUri;
            _keyService      = keyService;

            _log = new TokenValidationLog();
        }