ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 2025 feature!
Help / WLanguage / WLanguage functions / Communication / Managing the OAuth 2.0 protocol
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
Revokes a JSON Web Token (JWT).
Remarks:
  • Revocation consists of executing a request to invalidate the specified token. To log in again, the user will have to go through the entire login process.
  • When you use a variable of type OAuth2Parameters, you need to specify the revocation URL with the RevocationURL property.
Example
stOpenIDParam is OpenIDParameters
OpenIDParam.ConfigurationURL = "https://accounts.google.com/.well-known/openid-configuration"
stOpenIDParam.ClientID = "686331726510-0ojt7fqbkmtns8qjne242v5fuqb8v3tr.apps.googleusercontent.com"
stOpenIDParam.ClientSecret = "vEhFxP8I5AjppVFJsLYi0uKt"
stOpenIDParam.Scope = "email openid"
stOpenIDParam.RedirectionURL = "http://localhost:9874"
stToken is AuthToken = AuthIdentify(stOpenIDParam)
IF ErrorOccurred THEN
	Error(ErrorInfo(errFullDetails))
	RETURN
END
Identity is OpenIDIdentity = OpenIDReadIdentity(stToken)
 IF ErrorOccurred THEN
	Error(ErrorInfo(errFullDetails))
	RETURN
END
Trace(Identity.Email)
AuthRevokeToken(stToken)
Syntax
<Result> = AuthRevokeToken(<Connection token>)
<Result>: Boolean
  • True if the disconnection was performed,
  • False otherwise.
<Connection token>: AuthToken variable
Name of the AuthToken variable corresponding to the access token.
Component: wd300ggl.dll
Minimum version required
  • Version 2025
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/25/2024

Send a report | Local help