LUSID C# SDK
Public Member Functions | List of all members
Lusid.Sdk.Extensions.PersonalAccessTokenProvider Class Reference

Provides a PersonalAccessTokenProvider from an environment variable More...

Inheritance diagram for Lusid.Sdk.Extensions.PersonalAccessTokenProvider:
Inheritance graph
[legend]

Public Member Functions

 PersonalAccessTokenProvider (string personalAccessToken)
 Implementation of a TokenProvider for use with a Personal Access Token - generated in LUSID web and used in a FBN_ACCESS_TOKEN env variable. More...
 
async Task< string > GetAuthenticationTokenAsync ()
 Gets the authentication token generated in LUSID web and stored as an env variable named FBN_ACCESS_TOKEN More...
 
async Task< AuthenticationHeaderValue > GetAuthenticationHeaderAsync ()
 Gets the authentication header. More...
 

Detailed Description

Provides a PersonalAccessTokenProvider from an environment variable

Constructor & Destructor Documentation

◆ PersonalAccessTokenProvider()

Lusid.Sdk.Extensions.PersonalAccessTokenProvider.PersonalAccessTokenProvider ( string  personalAccessToken)
inline

Implementation of a TokenProvider for use with a Personal Access Token - generated in LUSID web and used in a FBN_ACCESS_TOKEN env variable.

Parameters
personalAccessTokenthe token to use

FBN_LUSID_URL env variable will also need to be defined in order to use this approach

Member Function Documentation

◆ GetAuthenticationHeaderAsync()

async Task<AuthenticationHeaderValue> Lusid.Sdk.Extensions.PersonalAccessTokenProvider.GetAuthenticationHeaderAsync ( )
inline

Gets the authentication header.

Returns

Implements Lusid.Sdk.Extensions.ITokenProvider.

◆ GetAuthenticationTokenAsync()

async Task<string> Lusid.Sdk.Extensions.PersonalAccessTokenProvider.GetAuthenticationTokenAsync ( )
inline

Gets the authentication token generated in LUSID web and stored as an env variable named FBN_ACCESS_TOKEN

Returns
the authentication token

Implements Lusid.Sdk.Extensions.ITokenProvider.


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