Oauth2Connection::GetAuthorizeContext (open)

Prepare the data needed to start an authorization flow

Syntax

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

RECORD FUNCTION GetAuthorizeContext(RECORD options)

Parameters

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

Record with authorization flow info

Description

Like AuthorizeClient this function starts an authentication flow, but gathers data for eg Tollium to handle the actual flow