ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Communication / Managing the OAuth 2.0 protocol
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Retrieves the identity of a user contained in an AuthToken variable.
Remark: This function can be used in the case of authentication using the OAuth 2.0 protocol on any Webservice.
Example
OpenIDParams est un OpenIDParamètres
OpenIDParams.URLConfiguration = "https://accounts.google.com/.well-known/openid-configuration"
OpenIDParams.ClientID = "106034950318?????????k59q.apps.googleusercontent.com"
OpenIDParams.ClientSecret = "oBTQL52J??????-76MpiM"
OpenIDParams.URLRedirection = "http://localhost:9846"
 
MonToken est un AuthToken = AuthIdentifie(OpenIDParams)
SI ErreurDétectée ALORS
Erreur(ErreurInfo())
RETOUR
FIN
 
MonIdentité est un OpenIDIdentité = MonToken.OpenIDLitIdentité()
SI MonIdentité.Valide ALORS
Trace(MonIdentité.Email)
Trace(MonIdentité.Nom)
Trace(MonIdentité.Prénom)
FIN
Syntax
<Result> = <Authentication token>.OpenIDReadIdentity()
<Result>: OpenIDIdentity variable
OpenIDIdentity variable containing the information of the authenticated user.
<Authentication token>: AuthToken variable
Name of the AuthToken variable that corresponds to the token which contains the access information for the next authenticated requests.
Component: wd290ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 06/21/2023

Send a report | Local help