Provides a PersonalAccessTokenProvider from an environment variable
More...
Provides a PersonalAccessTokenProvider from an environment variable
◆ 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
-
| personalAccessToken | the token to use |
FBN_LUSID_URL env variable will also need to be defined in order to use this approach
◆ GetAuthenticationHeaderAsync()
| async Task<AuthenticationHeaderValue> Lusid.Sdk.Extensions.PersonalAccessTokenProvider.GetAuthenticationHeaderAsync |
( |
| ) |
|
|
inline |
◆ 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:
- /home/docs/checkouts/readthedocs.org/user_builds/lusid-sdk-csharp/checkouts/latest/sdk/Lusid.Sdk/Extensions/PersonalAccessTokenProvider.cs