Table of Contents

Class OAuth2AuthorizationRequestHeaderAuthenticator

Namespace
RestSharp.Authenticators.OAuth2
Assembly
RestSharp.dll

The OAuth 2 authenticator using the authorization request header field.

public class OAuth2AuthorizationRequestHeaderAuthenticator : AuthenticatorBase, IAuthenticator
Inheritance
OAuth2AuthorizationRequestHeaderAuthenticator
Implements
Inherited Members

Remarks

Constructors

OAuth2AuthorizationRequestHeaderAuthenticator(string)

Initializes a new instance of the OAuth2AuthorizationRequestHeaderAuthenticator class.

public OAuth2AuthorizationRequestHeaderAuthenticator(string accessToken)

Parameters

accessToken string

The access token.

OAuth2AuthorizationRequestHeaderAuthenticator(string, string)

Initializes a new instance of the OAuth2AuthorizationRequestHeaderAuthenticator class.

public OAuth2AuthorizationRequestHeaderAuthenticator(string accessToken, string tokenType)

Parameters

accessToken string

The access token.

tokenType string

The token type.

Methods

GetAuthenticationParameter(string)

protected override ValueTask<Parameter> GetAuthenticationParameter(string accessToken)

Parameters

accessToken string

Returns

ValueTask<Parameter>