docs

Home All functions Legacy functions By category

vuOAuthSetClientSecret

Purpose

Store the OAuth client secret for the specified provider and account key.

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 that owns this app configuration. Usually the email address or profile account key.
ClientSecret *CSTRING OAuth client secret to store. Plain text secret provided by the provider portal.
OutText *CSTRING Receives status text. 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)
ClientSecret             CSTRING(512)
OutText                  CSTRING(512)
OutTextLen               LONG
Result                   LONG

Provider = 'google'
AccountKey = 'user@example.com'
ClientSecret = 'your-client-secret'
OutTextLen = SIZE(OutText)
CLEAR(OutText)
Result = vuOAuthSetClientSecret(Provider, AccountKey, ClientSecret, OutText, OutTextLen)

Notes