GlideOAuthClientResponse - Scoped, Global

Use these methods for handling OAuth client responses.

This class is available in scoped and global scripts. In a scoped script, use the sn_auth namespace identifier.

GlideOAuthClientResponse - getBody()

Retrieves all of the response information, including instance information.

Table 1. Parameters
Name Type Description
none
Table 2. Returns
Type Description
String The response information.

GlideOAuthClientResponse - getContentType()

Retrieves the HTTP response content header from an external OAuth provider.

Table 3. Parameters
Name Type Description
none
Table 4. Returns
Type Description
String The HTTP response header.

GlideOAuthClientResponse - getErrorMessage()

Retrieves the error message if authentication is not successful.

Table 5. Parameters
Name Type Description
none
Table 6. Returns
Type Description
String The error message.

GlideOAuthClientResponse - getResponseCode()

Retrieves the HTTP response code from the external OAuth provider.

Table 7. Parameters
Name Type Description
none
Table 8. Returns
Type Description
String The HTTP response code.

GlideOAuthClientResponse - getResponseParameters()

Retrieves the error message if authentication is not successful.

Table 9. Parameters
Name Type Description
none
Table 10. Returns
Type Description
MapString The response content.

GlideOAuthClientResponse - getToken()

Retrieves the refresh token.

Table 11. Parameters
Name Type Description
none
Table 12. Returns
Type Description
GlideOAuthToken The refresh token.