Thank you for your feedback.
Form temporarily unavailable. Please try again or contact docfeedback@servicenow.com to submit your comments.
Versions
  • London
  • Kingston
  • Jakarta
  • Istanbul
  • Helsinki
  • Geneva
  • Store
Close

Scoped OAuth APIs

Scoped OAuth APIs

OAuth supports application scoping by providing access to all OAuth methods in the available OAuth classes using the sn_auth namespace identifier.

For example, the following code accesses the requestToken:

var oAuthClient = new sn_auth.GlideOAuthClient( );
var tokenResponse = oAuthClient.requestTokenByRequest('TestClient',text );

When using these methods in the global scope, omit the sn_auth namespace identifier.