| Home | All functions | Legacy functions | Categories |
vuOAuthBeginLogin(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,*CSTRING ClientId,*CSTRING RedirectUri,*CSTRING Scope,*CSTRING Tenant,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthBeginLogin')
Starts an OAuth sign-in flow for a provider/account pair and returns flow text (for example device verification info or callback instructions).
| Parameter | Type | Description |
|—|—|—|
| Provider | *CSTRING | Provider identifier. |
| AccountKey | *CSTRING | Account key used to isolate token state. |
| OutText | *CSTRING | OAuth client/application ID. |
| ClientId | *CSTRING | Tenant/authority string (provider-specific). |
| RedirectUri | *CSTRING | Space-delimited OAuth scopes. |
| Scope | *CSTRING | Flow mode indicator (provider-specific). |
| Tenant | *CSTRING | Output buffer receiving status/detail text from BeginLogin. |
| OutTextLen | LONG | Size of OutText buffer in bytes. |
>= 0: Result code from the OAuth core Begin operation.-9: Core unavailable or exception.MAP
MODULE('vuMail.dll')
vuOAuthBeginLogin(*CSTRING Provider,*CSTRING AccountKey,*CSTRING OutText,*CSTRING ClientId,*CSTRING RedirectUri,*CSTRING Scope,*CSTRING Tenant,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthBeginLogin')
END
END
rc LONG
provider CSTRING(64)
accountKey CSTRING(128)
clientId CSTRING(256)
tenant CSTRING(128)
scopes CSTRING(512)
flowType CSTRING(32)
outText CSTRING(2048)
outLen LONG
provider = 'Microsoft'
accountKey = 'user@example.com'
clientId = '00000000-0000-0000-0000-000000000000'
tenant = 'common'
scopes = 'offline_access https://outlook.office.com/SMTP.Send'
flowType = 'device'
outText = ''
outLen = SIZE(outText)
rc = vuOAuthBeginLogin(provider, accountKey, clientId, tenant, scopes, flowType, outText, outLen)
IF rc < 0
MESSAGE('BeginLogin failed: ' & rc & '| ' & outText)
END
OutText is the handoff text used by later OAuth steps.Provider and AccountKey values on subsequent status/complete/clear/refresh calls.| Home | All functions | Legacy functions | Categories |