public DiscoveryEndpointController(IdentityServerOptions options, IScopeStore scopes, IOwinContext context, ISigningKeyService keyService, CustomGrantValidator customGrants)
 {
     _options = options;
     _scopes = scopes;
     _context = context;
     _keyService = keyService;
     _customGrants = customGrants;
 }
Esempio n. 2
0
 public DiscoveryEndpointController(IdentityServerOptions options, IScopeStore scopes, IOwinContext context, ISigningKeyService keyService, CustomGrantValidator customGrants)
 {
     _options      = options;
     _scopes       = scopes;
     _context      = context;
     _keyService   = keyService;
     _customGrants = customGrants;
 }
 public DiscoveryEndpoint(IdentityServerOptions options, IdentityServerContext context, IScopeStore scopes, ILogger<DiscoveryEndpoint> logger, ISigningKeyService keyService, CustomGrantValidator customGrants, SecretParser parsers)
 {
     _options = options;
     _scopes = scopes;
     _logger = logger;
     _keyService = keyService;
     _context = context;
     _customGrants = customGrants;
     _parsers = parsers;
 }
 public DiscoveryEndpoint(IdentityServerOptions options, IdentityServerContext context, IScopeStore scopes, ILogger <DiscoveryEndpoint> logger, ISigningKeyService keyService, CustomGrantValidator customGrants, SecretParser parsers)
 {
     _options      = options;
     _scopes       = scopes;
     _logger       = logger;
     _keyService   = keyService;
     _context      = context;
     _customGrants = customGrants;
     _parsers      = parsers;
 }
Esempio n. 5
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService owinEnvironment, ISigningKeyService keyService)
        {
            _options         = options;
            _clients         = clients;
            _tokenHandles    = tokenHandles;
            _customValidator = customValidator;
            _context         = new OwinContext(owinEnvironment.Environment);
            _keyService      = keyService;

            _log = new TokenValidationLog();
        }
Esempio n. 6
0
        public TokenValidator(IdentityServerOptions options, IClientStore clients, ITokenHandleStore tokenHandles, ICustomTokenValidator customValidator, OwinEnvironmentService owinEnvironment, ISigningKeyService keyService)
        {
            _options = options;
            _clients = clients;
            _tokenHandles = tokenHandles;
            _customValidator = customValidator;
            _context = new OwinContext(owinEnvironment.Environment);
            _keyService = keyService;

            _log = new TokenValidationLog();
        }
Esempio n. 7
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();
        }
Esempio n. 8
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();
        }
Esempio n. 9
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();
        }
Esempio n. 10
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="keyService">The signing key service.</param>
 public DefaultTokenSigningService(ISigningKeyService keyService)
 {
     _keyService = keyService;
 }
Esempio n. 11
0
 // todo: remove in next major version
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public DefaultTokenSigningService(IdentityServerOptions options)
 {
     _options    = options;
     _keyService = new DefaultSigningKeyService(options);
 }
Esempio n. 12
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)
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public DefaultTokenSigningService(ISigningKeyService keyService)
 {
     _keyService = keyService;
 }
 // todo: remove in next major version
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="options">The options.</param>
 public DefaultTokenSigningService(IdentityServerOptions options)
 {
     _options = options;
     _keyService = new DefaultSigningKeyService(options);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DefaultTokenSigningService"/> class.
 /// </summary>
 /// <param name="keyService">The signing key service.</param>
 /// <param name="certificateKeyService">The ceritificate key service</param>
 public DefaultTokenSigningService(ISigningKeyService keyService, ICertificateSigningKeyService certificateKeyService)
 {
     _keyService            = keyService;
     _certificateKeyService = certificateKeyService;
 }
Esempio n. 16
0
 public MyTokenSigningService(ISigningKeyService keyService) : base(keyService)
 {
 }
Esempio n. 17
0
 public TokenService(ILogger <TokenService> logger, ISigningKeyService signingKeyService)
 {
     _logger            = logger;
     _signingKeyService = signingKeyService;
 }