Class BrowserAuthenticatedAccessTokenProvider
An IAccessTokenProvider implementation that expects an access token from a browser environment.
Implements
Unity.DigitalTwins.Common.IAccessTokenProvider
Inherited Members
Namespace: Unity.DigitalTwins.Identity
Assembly: solution.dll
Syntax
public class BrowserAuthenticatedAccessTokenProvider : IAccessTokenProvider
Constructors
BrowserAuthenticatedAccessTokenProvider(IPkcePlatformSupport)
Returns an IAccessTokenProvider implementation that expects an access token from a browser environment.
Declaration
public BrowserAuthenticatedAccessTokenProvider(IPkcePlatformSupport pkcePlatformSupport)
Parameters
Type | Name | Description |
---|---|---|
IPkcePlatformSupport | pkcePlatformSupport |
Fields
s_CachedAccessTokenName
Declaration
public static readonly string s_CachedAccessTokenName
Field Value
Type | Description |
---|---|
String |
Methods
GetAccessTokenAsync()
Awaitable call to fetch the user access token.
Declaration
public async Task<string> GetAccessTokenAsync()
Returns
Type | Description |
---|---|
Task<String> | A Task that results in the string value of the user access token when completed. |
Implements
Unity.DigitalTwins.Common.IAccessTokenProvider