Пример #1
0
 public GenerateClientFromRegistrationRequest(
     IRegistrationParameterValidator registrationParameterValidator,
     IJsonWebKeyConverter jsonWebKeyConverter)
 {
     _registrationParameterValidator = registrationParameterValidator;
     _jsonWebKeyConverter            = jsonWebKeyConverter;
 }
 public JsonWebKeyHelper(
     IJsonWebKeyConverter jsonWebKeyConverter,
     IHttpClientFactory httpClientFactory)
 {
     _jsonWebKeyConverter = jsonWebKeyConverter;
     _httpClientFactory   = httpClientFactory;
 }
Пример #3
0
 public JwtTokenParser(
     IJwsParser jwsParser,
     IIdentityServerClientFactory identityServerClientFactory,
     IJsonWebKeyConverter jsonWebKeyConverter)
 {
     _jwsParser = jwsParser;
     _identityServerClientFactory = identityServerClientFactory;
     _jsonWebKeyConverter         = jsonWebKeyConverter;
 }
        public IdentityTokenHelper()
        {
            var services = new ServiceCollection();

            RegisterDependencies(services);
            var serviceProvider = services.BuildServiceProvider();

            _jweParser           = (IJweParser)serviceProvider.GetService(typeof(IJweParser));
            _jwsParser           = (IJwsParser)serviceProvider.GetService(typeof(IJwsParser));
            _jsonWebKeyConverter = (IJsonWebKeyConverter)serviceProvider.GetService(typeof(IJsonWebKeyConverter));
            _discoveryClient     = new IdentityServerClientFactory().CreateDiscoveryClient();
            _httpClientFactory   = new HttpClientFactory();
        }
 public JwtParser(
     IJweParser jweParser,
     IJwsParser jwsParser,
     IHttpClientFactory httpClientFactory,
     IClientRepository clientRepository,
     IJsonWebKeyConverter jsonWebKeyConverter,
     IJsonWebKeyRepository jsonWebKeyRepository)
 {
     _jweParser = jweParser;
     _jwsParser = jwsParser;
     _httpClientFactory = httpClientFactory;
     _clientRepository = clientRepository;
     _jsonWebKeyConverter = jsonWebKeyConverter;
     _jsonWebKeyRepository = jsonWebKeyRepository;
 }
Пример #6
0
 private void InitializeFakeObjects()
 {
     _jsonWebKeyConverter = new JsonWebKeyConverter();
 }
Пример #7
0
 public JwsParser(ICreateJwsSignature createJwsSignature)
 {
     _createJwsSignature  = createJwsSignature;
     _jsonWebKeyConverter = new JsonWebKeyConverter();
 }
 public JwtTokenParser(IJwsParser jwsParser, IJsonWebKeyConverter jsonWebKeyConverter)
 {
     _jwsParser           = jwsParser;
     _jsonWebKeyConverter = jsonWebKeyConverter;
 }