{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":1017,"path":"api-reference/server-api-reference/c_GlideOAuthClientResponse.md","title":"GlideOAuthClientResponse - Scoped, Global","bundle":null,"doc_type":null,"release":"australia","body":"\n# GlideOAuthClientResponse - Scoped, Global\n\nThe GlideOAuthClientResponse API provides methods for handling OAuth client responses.\n\nYou can use this API in global and scoped scripts. In scoped scripts use the `sn_auth` namespace identifier.\n\n**Parent Topic:**[Server API reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/api-reference/server-api-reference/api-server.md)\n\n## GlideOAuthClientResponse - getBody\\(\\)\n\nRetrieves all of the response information, including instance information.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|String|The response information.|\n\n## GlideOAuthClientResponse - getContentType\\(\\)\n\nRetrieves the HTTP response content header from an external OAuth provider.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|String|The HTTP response header.|\n\n## GlideOAuthClientResponse - getErrorMessage\\(\\)\n\nRetrieves the error message if authentication is not successful.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|String|The error message.|\n\n## GlideOAuthClientResponse - getResponseCode\\(\\)\n\nRetrieves the HTTP response code from the external OAuth provider.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|String|The HTTP response code.|\n\n## GlideOAuthClientResponse - getResponseParameters\\(\\)\n\nRetrieves the error message if authentication is not successful.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|MapString|The response content.|\n\n## GlideOAuthClientResponse - getToken\\(\\)\n\nRetrieves the refresh token.\n\n|Name|Type|Description|\n|----|----|-----------|\n|none| | |\n\n|Type|Description|\n|----|-----------|\n|GlideOAuthToken|The refresh token.|\n\n"}}