Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

GlideOAuthClientResponse - Scoped, Global

The GlideOAuthClientResponse API provides methods for handling OAuth client responses.

You can use this API in global and scoped scripts. In scoped scripts use the sn_auth namespace identifier.

Parent Topic:Server API reference

GlideOAuthClientResponse - getBody()

Retrieves all of the response information, including instance information.

NameTypeDescription
none  
TypeDescription
StringThe response information.

GlideOAuthClientResponse - getContentType()

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

NameTypeDescription
none  
TypeDescription
StringThe HTTP response header.

GlideOAuthClientResponse - getErrorMessage()

Retrieves the error message if authentication is not successful.

NameTypeDescription
none  
TypeDescription
StringThe error message.

GlideOAuthClientResponse - getResponseCode()

Retrieves the HTTP response code from the external OAuth provider.

NameTypeDescription
none  
TypeDescription
StringThe HTTP response code.

GlideOAuthClientResponse - getResponseParameters()

Retrieves the error message if authentication is not successful.

NameTypeDescription
none  
TypeDescription
MapStringThe response content.

GlideOAuthClientResponse - getToken()

Retrieves the refresh token.

NameTypeDescription
none  
TypeDescription
GlideOAuthTokenThe refresh token.