Skip to content

CreateAuthToken Method ​

Definition ​

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

Overloads ​

NameDescription
AuthenticationContext CreateAuthToken(AuthenticationToken token)Creates an authentication context that uses OAuth Bearer authentication.
AuthenticationContext CreateAuthToken(AuthenticationTokenResult result)Creates an authentication context that uses OAuth Bearer authentication.

AuthenticationContext CreateAuthToken(AuthenticationToken token) ​

csharp
AuthenticationContext CreateAuthToken(AuthenticationToken token)

Creates an authentication context that uses OAuth Bearer authentication.

Parameters ​

NameDescription
tokenOAuth access token to use for Authorization: Bearer requests.

Returns ​

An AuthenticationContext configured for OAuthBearer.

AuthenticationContext CreateAuthToken(AuthenticationTokenResult result) ​

csharp
AuthenticationContext CreateAuthToken(AuthenticationTokenResult result)

Creates an authentication context that uses OAuth Bearer authentication.

Parameters ​

NameDescription
resultThe result of a call to obtain and OAuth access token from a Service Now instance

Returns ​

An AuthenticationContext configured for OAuthBearer.