Class JwtAuthenticator
- Namespace
- RestSharp.Authenticators
- Assembly
- RestSharp.dll
JSON WEB TOKEN (JWT) Authenticator class.
public class JwtAuthenticator : AuthenticatorBase, IAuthenticator
- Inheritance
-
JwtAuthenticator
- Implements
- Inherited Members
Constructors
JwtAuthenticator(string)
public JwtAuthenticator(string accessToken)
Parameters
accessToken
string
Methods
GetAuthenticationParameter(string)
protected override ValueTask<Parameter> GetAuthenticationParameter(string accessToken)
Parameters
accessToken
string
Returns
SetBearerToken(string)
Set the new bearer token so the request gets the new header value
public void SetBearerToken(string accessToken)
Parameters
accessToken
string