コード例 #1
0
 public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
 {
     _options = options;
     _clients = clients;
     _tokenHandles = tokenHandles;
     _customValidator = customValidator;
 }
コード例 #2
0
 public TokenValidator(CoreSettings settings, IUserService users, IClientService clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
 {
     _settings = settings;
     _users = users;
     _clients = clients;
     _tokenHandles = tokenHandles;
     _customValidator = customValidator;
 }
コード例 #3
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
        {
            _options         = options;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;

            _log = new TokenValidationLog();
        }
 public FranceConnectTokenValidator(IdentityServerOptions options, IdentityServerContext context, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, IEnumerable<IValidationKeysStore> keys, ILogger<TokenValidator> logger)
 {
     _options = options;
     _context = context;
     _clients = clients;
     _tokenHandles = tokenHandles;
     _customValidator = customValidator;
     _keys = keys;
     _logger = logger;
 }
コード例 #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(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();
        }
コード例 #7
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();
        }
コード例 #8
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();
        }
コード例 #9
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();
        }
コード例 #10
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();
        }
コード例 #11
0
        public TokenValidator(IdentityServerOptions options, IHttpContextAccessor context, IClientStore clients, IReferenceTokenStore referenceTokenStore, ICustomTokenValidator customValidator, IKeyMaterialService keys, ILogger <TokenValidator> logger)
        {
            _options             = options;
            _context             = context;
            _clients             = clients;
            _referenceTokenStore = referenceTokenStore;
            _customValidator     = customValidator;
            _keys   = keys;
            _logger = logger;

            _log = new TokenValidationLog();
        }
コード例 #12
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();
        }
コード例 #13
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();
        }
コード例 #14
0
        public TokenValidator(
            IdentityServerOptions options,
            IIssuerNameService issuerNameService,
            IClientStore clients,
            IProfileService profile,
            IReferenceTokenStore referenceTokenStore,
            ICustomTokenValidator customValidator,
            IKeyMaterialService keys,
            ISystemClock clock,
            ILogger <TokenValidator> logger)
        {
            _options             = options;
            _issuerNameService   = issuerNameService;
            _clients             = clients;
            _profile             = profile;
            _referenceTokenStore = referenceTokenStore;
            _customValidator     = customValidator;
            _keys   = keys;
            _clock  = clock;
            _logger = logger;

            _log = new TokenValidationLog();
        }
コード例 #15
0
 public AlwaysInvalidAccessTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService context)
     : base(options, clients, tokenHandles, customValidator, context, new DefaultSigningKeyService(options))
 {
 }
コード例 #16
0
 public AlwaysInvalidIdentityTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService context)
     : base(options, clients, tokenHandles, customValidator, context)
 {
 }
コード例 #17
0
 public AlwaysInvalidIdentityTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
     : base(options, clients, tokenHandles, customValidator)
 {
 }
コード例 #18
0
 public TokenValidator(IdentityServerOptions options, IUserService users, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
 {
     _options         = options;
     _users           = users;
     _clients         = clients;
     _tokenHandles    = tokenHandles;
     _customValidator = customValidator;
 }
 public AlwaysInvalidIdentityTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService context)
     : base(options, clients, tokenHandles, customValidator, context, new DefaultSigningKeyService(options))
 {
 }
コード例 #20
0
 public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService owinEnvironment, ISigningKeyService keyService)
     : this(options, clients, tokenHandles, customValidator, new OwinContext(owinEnvironment.Environment).GetIdentityServerIssuerUri(), keyService)
 {
 }
 public AlwaysInvalidAccessTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
     : base(options, clients, tokenHandles, customValidator)
 {
 }
コード例 #22
0
 public AlwaysInvalidAccessTokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService context)
     : base(options, clients, tokenHandles, customValidator, context)
 {
 }
コード例 #23
0
 public TokenValidator(CoreSettings settings, IUserService users, IClientService clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator)
 {
     _settings        = settings;
     _users           = users;
     _clients         = clients;
     _tokenHandles    = tokenHandles;
     _customValidator = customValidator;
 }