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 keynameRegistry key to store the token in. The key itself must be of type 'record'
RECORD optionsOptions
STRING ARRAY scopesRequested scopes
Return value
RECORDDescription
This call wrpas client token request and storage. It should be called outside open work