Class OAuthAccessTokenResponse

Contains OAuth-related artifacts from the HTTP response from the third-party OAuth server when requesting an access token

PropertyDescription
IDToken: String (read-only)Returns the ID token, if available
accessToken: String (read-only)Returns the access token
accessTokenExpiry: Number (read-only)Returns the access token expiration
errorStatus: String (read-only)Returns the error status.
extraTokens: Map (read-only)Returns a map of additional tokens found in the response.
oauthProviderId: String (read-only)Returns the OAuth provider id
refreshToken: String (read-only)Returns the refresh token

This class does not have a constructor, so you cannot create it directly.

MethodDescription
getAccessToken()Returns the access token
getAccessTokenExpiry()Returns the access token expiration
getErrorStatus()Returns the error status.
getExtraTokens()Returns a map of additional tokens found in the response.
getIDToken()Returns the ID token, if available
getOauthProviderId()Returns the OAuth provider id
getRefreshToken()Returns the refresh token

assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values

IDToken: String (read-only)

Returns the ID token, if available


accessToken: String (read-only)

Returns the access token


accessTokenExpiry: Number (read-only)

Returns the access token expiration


errorStatus: String (read-only)

Returns the error status. In cases of errors - more detailed error information can be seen in the error log files (specifity of error details vary by OAuth provider).


extraTokens: Map (read-only)

Returns a map of additional tokens found in the response.


oauthProviderId: String (read-only)

Returns the OAuth provider id


refreshToken: String (read-only)

Returns the refresh token


getAccessToken(): String

Returns the access token

Returns:

  • the access token, if available, null otherwise

getAccessTokenExpiry(): Number

Returns the access token expiration

Returns:

  • the access token expiration

getErrorStatus(): String

Returns the error status. In cases of errors - more detailed error information can be seen in the error log files (specifity of error details vary by OAuth provider).

Returns:

  • the error status, if available, null otherwise

getExtraTokens(): Map

Returns a map of additional tokens found in the response.

Returns:

  • Additional tokens provided by the token end-point. May be null or empty.

getIDToken(): String

Returns the ID token, if available

Returns:

  • the ID token, if available, null otherwise

getOauthProviderId(): String

Returns the OAuth provider id

Returns:

  • the OAuth provider id

getRefreshToken(): String

Returns the refresh token

Returns:

  • the refresh token, if available, null otherwise