Beispiel #1
0
        public UmaFilter(IIdentityServerClientFactory identityServerClientFactory, IIdentityServerUmaClientFactory identityServerUmaClientFactory,
                         IDataProtectionProvider dataProtectionProvider, IHierarchicalResourceClientFactory resourceManagerClientFactory, IJwsParser jwsParser, UmaFilterOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            if (options.Authorization == null)
            {
                throw new ArgumentNullException(nameof(options.Authorization));
            }

            if (options.Cookie == null)
            {
                throw new ArgumentNullException(nameof(options.Cookie));
            }

            _options = options;
            _identityServerClientFactory    = identityServerClientFactory;
            _identityServerUmaClientFactory = identityServerUmaClientFactory;
            _resourceManagerClientFactory   = resourceManagerClientFactory;
            _dataProtector = dataProtectionProvider.CreateProtector("UmaFilter");
            _jwsParser     = jwsParser;
        }
Beispiel #2
0
 public GetJweInformationAction(
     IJweParser jweParser,
     IJwsParser jwsParser,
     IJsonWebKeyHelper jsonWebKeyHelper)
 {
     _jweParser        = jweParser;
     _jwsParser        = jwsParser;
     _jsonWebKeyHelper = jsonWebKeyHelper;
 }
Beispiel #3
0
 public JwtTokenParser(
     IJwsParser jwsParser,
     IIdentityServerClientFactory identityServerClientFactory,
     IJsonWebKeyConverter jsonWebKeyConverter)
 {
     _jwsParser = jwsParser;
     _identityServerClientFactory = identityServerClientFactory;
     _jsonWebKeyConverter         = jsonWebKeyConverter;
 }
Beispiel #4
0
 public ClientAssertionAuthentication(
     IJwsParser jwsParser,
     IConfigurationService configurationService,
     IClientRepository clientRepository,
     IJwtParser jwtParser)
 {
     _jwsParser            = jwsParser;
     _configurationService = configurationService;
     _clientRepository     = clientRepository;
     _jwtParser            = jwtParser;
 }
        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;
 }
 public InformationsController(IIdentityServerUmaClientFactory identityServerUmaClientFactory, IIdentityServerClientFactory identityServerClientFactory,
                               IJwsParser jwsParser)
 {
     _identityServerUmaClientFactory = identityServerUmaClientFactory;
     _identityServerClientFactory    = identityServerClientFactory;
     _jwsParser    = jwsParser;
     _informations = new List <Information>
     {
         new Information
         {
             Id         = "1",
             Address    = "adr bruxelles",
             Gender     = "M",
             ResourceId = "1"
         }
     };
 }
 public AuthenticateController(IJwsParser jwsParser)
 {
     _jwsParser = jwsParser;
     _identityServerClientFactory = new IdentityServerClientFactory();
 }
Beispiel #9
0
 public HomeView(IEventAggregator eventAggregator, IJwsParser jwsParser)
 {
     _eventAggregator = eventAggregator;
     _jwsParser       = jwsParser;
     InitializeComponent();
 }
 private AuthenticationStore()
 {
     _jwsParser = new JwsParser(null);
 }
 public JwtTokenParser(IJwsParser jwsParser, IJsonWebKeyConverter jsonWebKeyConverter)
 {
     _jwsParser           = jwsParser;
     _jsonWebKeyConverter = jsonWebKeyConverter;
 }