コード例 #1
0
    public AuthHeaderProvider(IConfiguration config, IClientAccessTokenManagementService tokenService, ILogger <AuthHeaderProvider> logger)
    {
        this.config       = config;
        log               = logger;
        this.tokenService = tokenService;

        BasicAuthHeader       = GetBasicAuthHeader();
        BearerTokenAuthHeader = GetBearerTokenHeader();
    }
コード例 #2
0
 public ClientAccessTokenHandler(IClientAccessTokenManagementService accessTokenManagementService,
                                 ClientTokenRequestParameters tokenRequestParameters)
 {
     _accessTokenManagementService = accessTokenManagementService;
     _tokenRequestParameters       = tokenRequestParameters;
 }
コード例 #3
0
 /// <summary>
 /// ctor
 /// </summary>
 /// <param name="accessTokenManagementService">The Access Token Management Service</param>
 /// <param name="tokenClientName">The name of the token client configuration</param>
 public ClientAccessTokenHandler(IClientAccessTokenManagementService accessTokenManagementService, string tokenClientName = AccessTokenManagementDefaults.DefaultTokenClientName)
 {
     _accessTokenManagementService = accessTokenManagementService;
     _tokenClientName = tokenClientName;
 }