Interface IAuthenticator
Used to authenticate requests to the Worldline Acquiring platform. Thread-safe.
Namespace: Worldline.Acquiring.Sdk.Authentication
Assembly: Worldline.Acquiring.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.