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.