public UserInfoEndpointController(TokenValidator tokenValidator, UserInfoResponseGenerator generator, ILogger logger)
        {
            _tokenValidator = tokenValidator;
            _generator = generator;

            _logger = logger;
        }
        public UserInfoEndpointController(TokenValidator tokenValidator, UserInfoResponseGenerator generator, ILogger logger)
        {
            _tokenValidator = tokenValidator;
            _generator      = generator;

            _logger = logger;
        }
Ejemplo n.º 3
0
        public EndSessionRequestValidator(IdentityServerOptions options, IOwinContext context, TokenValidator tokenValidator, IClientStore clients)
        {
            _tokenValidator = tokenValidator;
            _clients        = clients;

            _validatedRequest = new ValidatedEndSessionRequest
            {
                Options     = options,
                Environment = context.Environment
            };
        }
        public async Task Create_and_Validate_JWT_AccessToken_Valid()
        {
            var tokenService = new DefaultTokenService(
                null,
                _settings,
                null,
                null);

            var token = new Token(Constants.TokenTypes.AccessToken)
            {
                Audience = string.Format(Constants.AccessTokenAudience, _settings.GetIssuerUri()),
                Issuer = _settings.GetIssuerUri(),
                Lifetime = 60,
                Client = await _settings.FindClientByIdAsync("client")
            };

            var jwt = await tokenService.CreateSecurityTokenAsync(token);

            var validator = new TokenValidator(_settings, null, null, new DebugLogger());
            var result = await validator.ValidateAccessTokenAsync(jwt);

            Assert.IsFalse(result.IsError);
            Assert.IsNotNull(result.Claims);
        }
 public AccessTokenValidationController(TokenValidator validator, CoreSettings settings)
 {
     _validator = validator;
     _settings  = settings;
 }
 public AccessTokenValidationController(TokenValidator validator, IdentityServerOptions options)
 {
     _validator = validator;
     _options = options;
 }
Ejemplo n.º 7
0
 public AccessTokenValidationController(TokenValidator validator)
 {
     _validator = validator;
 }
 public UserInfoEndpointController(CoreSettings settings, TokenValidator tokenValidator, UserInfoResponseGenerator generator)
 {
     _tokenValidator = tokenValidator;
     _generator = generator;
     _settings = settings;
 }
 public UserInfoEndpointController(IdentityServerOptions options, TokenValidator tokenValidator, UserInfoResponseGenerator generator)
 {
     _tokenValidator = tokenValidator;
     _generator = generator;
     _options = options;
 }
 public AccessTokenValidationController(TokenValidator validator, IdentityServerOptions options)
 {
     _validator = validator;
     _options   = options;
 }
 public UserInfoEndpointController(IdentityServerOptions options, TokenValidator tokenValidator, UserInfoResponseGenerator generator)
 {
     _tokenValidator = tokenValidator;
     _generator = generator;
     _options = options;
 }
 public AccessTokenValidationController(TokenValidator validator)
 {
     _validator = validator;
 }
 public AccessTokenValidationController(TokenValidator validator, CoreSettings settings)
 {
     _validator = validator;
     _settings = settings;
 }
Ejemplo n.º 14
0
 public UserInfoEndpointController(CoreSettings settings, TokenValidator tokenValidator, UserInfoResponseGenerator generator)
 {
     _tokenValidator = tokenValidator;
     _generator      = generator;
     _settings       = settings;
 }