Has three methods:

Lib.OAuth.OAuth2.nonce()

generates nonce string


Lib.OAuth.OAuth2.connect(consumer, accessToken, refreshToken)

creates Client object for consumer, accessToken and refreshToken parameters

consumer - Consumer object

accessToken - OAuth2AccessToken object

refreshToken - RefreshToken object

Lib.OAuth.OAuth2.buildAuthUrl(baseUri, clientId, opts, additionalParamsObject)

constructs authentication url from baseUri, clientId, opts object and additionalParamsObject parameters

baseUri - base uri string

clientId - client ID string

opts - object with structure:

 {redirectUri = string, scope = string, state = string, access_type = string}

additionalParamsObject - can be added extra options if necessary

Created with the Personal Edition of HelpNDoc: Easily create CHM Help documents