Interface IAuthenticator
Used to authenticate requests to the Worldline Global Collect platform. Thread-safe.
Namespace: Worldline.Connect.Sdk.Authentication
Assembly: Worldline.Connect.Sdk.dll
Syntax
public interface IAuthenticator
Methods
GetAuthorization(HttpMethod, Uri, IEnumerable<IRequestHeader>)
Returns a value that can be used for the Authorization
header.
Declaration
Task<string> GetAuthorization(HttpMethod httpMethod, Uri resourceUri, IEnumerable<IRequestHeader> requestHeaders)
Parameters
Type | Name | Description |
---|---|---|
HttpMethod | httpMethod | HTTP method. |
Uri | resourceUri | Resource URI. |
IEnumerable<IRequestHeader> | requestHeaders | A list of request headers. |
Returns
Type | Description |
---|---|
Task<string> | The |
Remarks
The list of Request headers may not be modified and may not contain headers with the same name.