Example #1
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();
        }
 /// <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;
 }