Method GenerateCredentialAsync
GenerateCredentialAsync(Uri, Nullable<String>, Nullable<String>, GenerateTokenOptions)
Generates a token credential object asynchronously. You need to provide the service URI, the username and the password. This is a helper method typically called by the UI challenging the user.
Declaration
public Task<TokenCredential> GenerateCredentialAsync(Uri serviceUri, string? userName, string? password, GenerateTokenOptions generateTokenOptions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | serviceUri | The service Uri. |
| System.Nullable<String> | userName | The user name. |
| System.Nullable<String> | password | The password. |
| GenerateTokenOptions | generateTokenOptions | The optional infos concerning the token to generate (referer, credentials). |
Returns
| Type | Description |
|---|---|
| Task<TokenCredential> | The task object representing the asynchronous generate credential operation. The value of the task result is a TokenCredential object. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |
GenerateCredentialAsync(Uri, GenerateTokenOptions)
Generates a token credential object asynchronously. You need to provide the service URL. This is a helper method typically called by the UI challenging the user.
Declaration
public Task<TokenCredential> GenerateCredentialAsync(Uri serviceUri, GenerateTokenOptions generateTokenOptions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| Uri | serviceUri | The URL. |
| GenerateTokenOptions | generateTokenOptions | The optional infos concerning the token to generate (referer, credentials). |
Returns
| Type | Description |
|---|---|
| Task<TokenCredential> | The task object representing the asynchronous generate credential operation. The value of the task result is a TokenCredential object. |
Applies to
Platforms and versions
| Target | Versions |
|---|---|
| UWP | 100.15 |