Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Identity to impersonate

Remarks

If service argument empty, client is authenticated with HTTP basic credentials from domain settings.

Scope argument is based on service parameter and may change to following request's security context. Please refer the service documentation.

...

Code Block
languagejs
var scopes = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';

var client = $Rest.Create('https://www.googleapis.com/oauth2/v2/userinfo');

if ( client.Authenticate('Google',scopes, $Initiator) ) {
  
  var userInfo = client.ExecuteJson();
  
}

Remarks

If service argument empty, client is authenticated with HTTP basic credentials from domain settings.

Scope argument is based on service parameter and may change to following request's security context. Please refer the service documentation.

...

Code Block
languagejs
var scopes = 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email';

var client = $Rest.Create('https://www.googleapis.com/oauth2/v2/userinfo');

if ( client.Authenticate('Google',scopes, $Initiator) ) {
  
  var userInfo = client.ExecuteJson();
  
}

Remarks

If service argument empty, client is authenticated with HTTP basic credentials from domain settings.

Scope argument is based on service parameter and may change to following request's security context. Please refer the service documentation.

...