Oauth2Connection::SetupClientCredentialsUsingRegistryKey (open)
Grab client credentials from a registry key, requesting or extending if necessary.
Syntax
LOADLIB "mod::system/lib/webapi/oauth2.whlib";
RECORD FUNCTION SetupClientCredentialsUsingRegistryKey(STRING keyname, RECORD options)
Parameters
STRING keyname
Registry key to store the token in. The key itself must be of type 'record'
RECORD options
Options
STRING ARRAY scopes
Requested scopes
Return value
RECORD
Description
This call wrpas client token request and storage. It should be called outside open work