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

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 prefix.

See the ServiceNow Developers site for API information.

For example, the following code accesses the requestToken:

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

You can still access the methods in the global scope by omitting the sn_auth prefix. However, methods that access tokens on locally scoped applications must use the prefix.