PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Retrieves the identity of a user contained in an AuthToken variable.
Note: This function can be used in the case of authentication using the OAuth 2.0 protocol on any Webservice.
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..Name)
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
Name of the AuthToken variable that corresponds to the token which contains the access information for the next authenticated requests.
Component : wd250ggl.dll
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment