ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

This content has been translated automatically.  Click here  to view the French version.
Help / WLanguage / WLanguage functions / Communication / Managing the OAuth 2.0 protocol
  • Properties specific to OpenIDIdentity variables
WINDEV
WindowsLinuxJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac Catalyst
Others
Stored procedures
The OpenIDIdentity type is used to define all the advanced characteristics of a user connected to a web service via the OAuth 2.0 protocol. You can define and change the characteristics of this user using different WLanguage properties.
Note: For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
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"

MonToken is AuthToken = AuthIdentifie(OpenIDParams)
IF ErrorOccurred THEN
	Error(ErrorInfo())
	RETURN
END

MonIdentité is OpenIDIdentity = OpenIDLitIdentité(MonToken)
IF MonIdentité.Valid THEN
	Trace(MonIdentité.Email)
	Trace(MonIdentité.Name)
	Trace(MonIdentité.FirstName)
END
Properties

Properties specific to OpenIDIdentity variables

The following properties can be used to manage a user:
Property nameType usedEffect
EmailCharacter stringUser's email address.
Warning: Depending on the provider used, this information may be empty..
FirstNameCharacter stringUser's first name.
Warning: Depending on the provider used, this information may be empty..
IDTokenBufferToken OpenID.
LastNameCharacter stringUser's last name.
Warning: Depending on the provider used, this information may be empty..
SourceJSONUser properties.
ValidBoolean
  • True if the identity is valid,
  • False otherwise.
Minimum version required
  • Version 24
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 09/20/2024

Send a report | Local help