Skip to content

CreateApiKey Method ​

Definition ​

  • Namespace: JASE.ServiceNow
  • Assembly: JASE.ServiceNow.dll

AuthenticationContext CreateApiKey(string apiKey, string apiHeader = null) ​

csharp
AuthenticationContext CreateApiKey(string apiKey, string apiHeader = null)

Creates an authentication context that uses an API key passed in a request header.

Parameters ​

NameDescription
apiHeaderHeader name to send the API key in (default: x-sn-apikey).
apiKeyAPI key value.

Returns ​

An AuthenticationContext configured for ApiKey.