Oauth2Connection::StartAuthorizeClient (open)

Get the submitinstruction to start an authorziation flow

Syntax

LOADLIB "mod::system/lib/webapi/oauth2.whlib";

RECORD FUNCTION StartAuthorizeClient(STRING finalreturnurl, RECORD options)

Parameters

STRING finalreturnurl

URL to return

RECORD options

Options

STRING access_type

'offline' to request a refresh_token. defaults to 'online'

RECORD extraparameters

Any extra parameters, eg [ prompt := "consent" ]

STRING ARRAY scopes

Requested scopes

Return value

RECORD

Submit instruction to execute