LUSID C# SDK
Public Member Functions | Protected Member Functions | Properties | List of all members
Lusid.Sdk.Client.Auth.OAuthAuthenticator Class Reference

An authenticator for OAuth2 authentication flows More...

Public Member Functions

 OAuthAuthenticator (string tokenUrl, string clientId, string clientSecret, OAuthFlow? flow, JsonSerializerSettings serializerSettings, IReadableConfiguration configuration)
 Initialize the OAuth2 Authenticator More...
 
async ValueTask Authenticate (Request request)
 

Protected Member Functions

async ValueTask< Parameter > GetAuthenticationParameter (string accessToken)
 Creates an authentication parameter from an access token. More...
 

Properties

string Token = "" [get, set]
 

Detailed Description

An authenticator for OAuth2 authentication flows

Constructor & Destructor Documentation

◆ OAuthAuthenticator()

Lusid.Sdk.Client.Auth.OAuthAuthenticator.OAuthAuthenticator ( string  tokenUrl,
string  clientId,
string  clientSecret,
OAuthFlow flow,
JsonSerializerSettings  serializerSettings,
IReadableConfiguration  configuration 
)
inline

Initialize the OAuth2 Authenticator

Member Function Documentation

◆ Authenticate()

async ValueTask Lusid.Sdk.Client.Auth.OAuthAuthenticator.Authenticate ( Request  request)

Parameters
request

◆ GetAuthenticationParameter()

async ValueTask<Parameter> Lusid.Sdk.Client.Auth.OAuthAuthenticator.GetAuthenticationParameter ( string  accessToken)
inlineprotected

Creates an authentication parameter from an access token.

Parameters
accessTokenAccess token to create a parameter from.
Returns
An authentication parameter.

Property Documentation

◆ Token

string Lusid.Sdk.Client.Auth.OAuthAuthenticator.Token = ""
getsetprotected


The documentation for this class was generated from the following file: