Previous Topic

Next Topic

Book Contents

Book Index

OAuth2TokenFromAuthCodeEx - MaxBasic Function

OAuth2TokenFromAuthCodeEx(Options: StringList): Object

OAuth2TokenFromAuthCodeEx function returns a JSON OAuth2 token based on String List Key/Value pairs passed. If an error occurs, the login form will close and the Response Code, Error and any additional Error Text will be returned as a JSON object.

OAuth2TokenFromAuthCodeEx function syntax has these named arguments:

Parameter

Description

Options

Required. A Stringlist object containing at a minimum all mandatory parameters as name value pairs.

  • ClientID
  • ClientSecret
  • Scope
  • TokenEndpoint
  • AuthEndpoint
  • UsePKCE
  • ExtraQueryParams (optional)
  • RedirectUrl (optional)

Accepts "Y", "Yes", "T", "True", or "1" for the boolean UsePKCE param.

See OAuth2TokenFromAuthCode for additional information.

Note: This function makes use of an Windows component that wraps Internet Explorer. As such, you may need to modify your Internet Explorer security options depending on the website you are connecting to.