ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

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
Retrieves the identity of a user contained in an AuthToken variable.
Note: This function can be used for an authentication using the OAuth 2.0 protocol on any web service.
New in version 2025
Android This function is now available for Android applications.
Android Widget This function is now available in Android widget mode.
Example
OpenIDParams is OpenIDParameters
OpenIDParams.ConfigurationURL = "https://accounts.google.com/.well-known/openid-configuration"
OpenIDParams.ClientID = "106034950318?????????k59q.apps.googleusercontent.com" 
OpenIDParams.ClientSecret = "oBTQL52J??????-76MpiM"
OpenIDParams.RedirectionURL = "http://localhost:9846"

MyToken is AuthToken = AuthIdentify(OpenIDParams)
IF ErrorOccurred THEN
	Error(ErrorInfo())
	RETURN
END

MyIdentity is OpenIDIdentity = OpenIDReadIdentity(MyToken)
IF MyIdentity.Valid THEN
	Trace(MyIdentity.Email)
	Trace(MyIdentity.LastName)
	Trace(MyIdentity.FirstName)
END
Syntax
<Result> = OpenIDReadIdentity(<Authentication token>)
<Result>: OpenIDIdentity variable
OpenIDIdentity variable containing the information of the authenticated user.
<Authentication token>: AuthToken variable
AuthToken variable corresponding to the token containing the access information for the next requests that require authentication.
Business / UI classification: Business Logic
Component: wd300ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 02/07/2025

Send a report | Local help