PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
New WINDEV, WEBDEV, WINDEV Mobile 24 feature!
  • Properties specific to the description of OpenIDIdentity variables
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
The OpenIDIdentity type is used to define all the advanced characteristics of a user connected to a service via the OAuth 2.0 protocol. The characteristics of this user can be defined and modified by several WLanguage properties.
Note: See Declaring a variable for more details.
Example
OpenIDParams is OpenIDParameters
OpenIDParams..ConfigurationURL = "https://accounts.google.com/.well-known/openid-configuration"
OpenIDParams..ClientID = "1060349503186-pc7ahme???????7gk59q.apps.googleusercontent.com"
OpenIDParams..ClientSecret = "oBTQL52?????y9-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
Remarks

Properties specific to the description of OpenIDIdentity variables

The following properties can be used to manage a user:
Property nameType usedEffect
EmailCharacter stringUser's email address.
Caution: Depending on the provider used, this information may be empty.
IDTokenBufferToken OpenID.
NameCharacter stringUser name.
Caution: Depending on the provider used, this information may be empty.
FirstNameCharacter stringFirst name of user.
Caution: Depending on the provider used, this information may be empty.
SourceJSONUser properties.
ValidBoolean
  • True if the identity is valid,
  • False otherwise.

Note: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment