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

Scoped OAuth APIs

Log in to subscribe to topics and get notified when content changes.

Scoped OAuth APIs

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

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.

Feedback