Table of Contents

Class JwtAuthenticator

Namespace
RestSharp.Authenticators
Assembly
RestSharp.dll

JSON WEB TOKEN (JWT) Authenticator class. https://tools.ietf.org/html/draft-ietf-oauth-json-web-token

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

ValueTask<Parameter>

SetBearerToken(string)

Set the new bearer token so the request gets the new header value

public void SetBearerToken(string accessToken)

Parameters

accessToken string