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. |
userName | The user name. |
System. |
password | The password. |
Generate |
generateTokenOptions | The optional infos concerning the token to generate (referer, credentials). |
Returns
Type | Description |
---|---|
Task<Token |
The task object representing the asynchronous generate credential operation. The value of the task result is a Token |
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. |
Generate |
generateTokenOptions | The optional infos concerning the token to generate (referer, credentials). |
Returns
Type | Description |
---|---|
Task<Token |
The task object representing the asynchronous generate credential operation. The value of the task result is a Token |
Applies to
Platforms and versions
Target | Versions |
---|---|
UWP | 100.15 |