Interface IAuthTokenProvider
An interface for acquiring authentication tokens.
Namespace: Microsoft.XboxStudios.SQTech.Authentication
Assembly: Microsoft.XboxStudios.SQTech.Authentication.dll
Syntax
public interface IAuthTokenProvider
Methods
View SourceAcquireTokenAsync(IEnumerable<string>, CancellationToken)
Gets a token for the requested scopes.
Declaration
Task<string> AcquireTokenAsync(IEnumerable<string> applicationScopes, CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | applicationScopes | The target application scopes. |
| CancellationToken | cancellationToken | A cancellation token. |
Returns
| Type | Description |
|---|---|
| Task<string> | An access token to access protected web APIs. |