Method GetAuthorizationStringAsync
GetAuthorizationStringAsync(Request, CancellationToken)
Gets the authorization string.
Declaration
public override Task<string> GetAuthorizationStringAsync(Request request, CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
Request | request | The Request object representing the running operation. |
CancellationToken | cancellationToken | Cancellation token. |
Returns
Type | Description |
---|---|
Task<String> | Task that returning the authorization string. |
Overrides
Remarks
This method is called by the driver to obtain the authorization information. You do not need to call this method.
This method will perform the login operation for the first time and also if the previous operation failed with InvalidAuthorizationException. After login, a renew operation will be optionally scheduled, which will update the login token in the background. In all other cases, this method will return the existing authorization string.
Exceptions
Type | Condition |
---|---|
AuthorizationException | If the login failed. |