docs

Home All functions Legacy functions By category

vuOAuthLaunchAuthorizeUrl

Purpose

Build and launch the provider authorization URL for an OAuth login flow.

Export name

Clarion prototype (Inside Global MAP)

Parameters

Parameter Type Description Expected values / range
Provider *CSTRING Provider name. Typical values: google, microsoft.
AccountKey *CSTRING Account key used to bind the OAuth session. Usually the email address.
CopyUrlToClipboard LONG Whether to also copy the URL to the clipboard. 0 = no, 1 = yes.
OutText *CSTRING Receives status text or the URL. Writable text buffer.
OutTextLen LONG Length of OutText in bytes. Pass SIZE(OutText).

Expected values and ranges

Return value

Clarion example

Provider                 CSTRING(40)
AccountKey               CSTRING(254)
CopyUrlToClipboard       LONG
OutText                  CSTRING(1024)
OutTextLen               LONG
Result                   LONG

Provider = 'google'
AccountKey = 'user@example.com'
CopyUrlToClipboard = 1
OutTextLen = SIZE(OutText)
CLEAR(OutText)
Result = vuOAuthLaunchAuthorizeUrl(Provider, AccountKey, CopyUrlToClipboard, OutText, OutTextLen)

Notes