Table of Contents

Class ApiKeyHelper

Espace de noms
SESARWebHook.Core.Auth
public class ApiKeyHelper
Héritage
ApiKeyHelper
Membres hérités

Methods

ApplyTo(HttpClient)

public void ApplyTo(HttpClient client)

Paramètres

client HttpClient

ApplyTo(HttpRequestMessage)

public void ApplyTo(HttpRequestMessage request)

Paramètres

request HttpRequestMessage

AsBasicAuth(string, string)

public static ApiKeyHelper AsBasicAuth(string username, string apiKey)

Paramètres

username string
apiKey string

Retour

ApiKeyHelper

AsBasicAuthUsername(string)

public static ApiKeyHelper AsBasicAuthUsername(string apiKey)

Paramètres

apiKey string

Retour

ApiKeyHelper

AsBearer(string)

public static ApiKeyHelper AsBearer(string apiKey)

Paramètres

apiKey string

Retour

ApiKeyHelper

GetAuthorizationHeader()

public AuthenticationHeaderValue GetAuthorizationHeader()

Retour

AuthenticationHeaderValue

InHeader(string, string)

public static ApiKeyHelper InHeader(string headerName, string apiKey)

Paramètres

headerName string
apiKey string

Retour

ApiKeyHelper

InQueryString(string, string)

public static ApiKeyHelper InQueryString(string paramName, string apiKey)

Paramètres

paramName string
apiKey string

Retour

ApiKeyHelper