| Home | All functions | Legacy functions | Categories |
vuOAuthCompleteLogin(*CSTRING Provider,*CSTRING AccountKey,*CSTRING CallbackText,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthCompleteLogin')
Finalizes OAuth sign-in using callback data or verification result text and stores token state for later SMTP/POP3 use.
| Parameter | Type | Description |
|—|—|—|
| Provider | *CSTRING | Provider identifier used in BeginLogin. |
| AccountKey | *CSTRING | Account key used in BeginLogin. |
| CallbackText | *CSTRING | Callback payload or verification completion text. |
| OutText | *CSTRING | Output buffer receiving completion status text. |
| OutTextLen | LONG | Size of OutText buffer in bytes. |
>= 0: Result code from the OAuth core Complete operation.-9: Core unavailable or exception.MAP
MODULE('vuMail.dll')
vuOAuthCompleteLogin(*CSTRING Provider,*CSTRING AccountKey,*CSTRING CallbackText,*CSTRING OutText,LONG OutTextLen),SIGNED,PROC,PASCAL,RAW,NAME('vuOAuthCompleteLogin')
END
END
rc LONG
provider CSTRING(64)
accountKey CSTRING(128)
callbackData CSTRING(2048)
outText CSTRING(2048)
outLen LONG
provider = 'Microsoft'
accountKey = 'user@example.com'
callbackData = 'code=...&state=...'
outText = ''
outLen = SIZE(outText)
rc = vuOAuthCompleteLogin(provider, accountKey, callbackData, outText, outLen)
IF rc < 0
MESSAGE('CompleteLogin failed: ' & rc & '| ' & outText)
END
Provider and AccountKey must match the values used for BeginLogin state.OutText.| Home | All functions | Legacy functions | Categories |