GlideOAuthClientResponse - Scoped, Global

  • Versão de lançamento: Australia
  • Atualizado 12 de mar. de 2026
  • 1 min. de leitura
  • 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.

    GlideOAuthClientResponse - getBody()

    Retrieves all of the response information, including instance information.

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

    GlideOAuthClientResponse - getContentType()

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

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

    GlideOAuthClientResponse - getErrorMessage()

    Retrieves the error message if authentication is not successful.

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

    GlideOAuthClientResponse - getResponseCode()

    Retrieves the HTTP response code from the external OAuth provider.

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

    GlideOAuthClientResponse - getResponseParameters()

    Retrieves the error message if authentication is not successful.

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

    GlideOAuthClientResponse - getToken()

    Retrieves the refresh token.

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