Method GetAuthorizationStringAsync
GetAuthorizationStringAsync(Request, CancellationToken)
Gets the authorization string.
Declaration
public abstract 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. |
Remarks
Subclasses must override this method. The returned authorization
string will be set as a value of Authorization HTTP
header.
Exceptions
| Type | Condition |
|---|---|
| AuthorizationException | If failed to obtain the authorization string. Use this exception to wrap any provider-specific exception. |