/// <summary> /// Initializes a new instance of the <see cref="OAuth2AuthorizationRequestHeaderAuthenticator"/> class. /// </summary> /// <param name="client">The OAuth2 client</param> /// <param name="tokenType">The token type.</param> public OAuth2AuthorizationRequestHeaderAuthenticator(OAuth2Client client, string tokenType) : base(client) { _tokenType = tokenType; }
/// <summary> /// Initializes a new instance of the <see cref="OAuth2AuthorizationRequestHeaderAuthenticator"/> class. /// </summary> /// <param name="client">The OAuth2 client</param> public OAuth2AuthorizationRequestHeaderAuthenticator(OAuth2Client client) : this(client, string.IsNullOrEmpty(client.TokenType) ? "OAuth" : client.TokenType) { }