|
|
|
|
|
- Properties specific to OpenIDIdentity variables
OpenIDIdentity (Variable type) In french: OpenIDIdentité
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. New in version 2025OpenIDParams 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.LastName)
Trace(MyIdentity.FirstName)
END
Properties Properties specific to OpenIDIdentity variables The following properties can be used to manage a user: | | | Property name | Type used | Effect |
---|
Email | Character string | User's email address. Note: Depending on the provider used, this information may be empty. | FirstName | Character string | User's first name. Note: Depending on the provider used, this information may be empty. | IDToken | Buffer | Token OpenID. | LastName | Character string | User's last name. Note: Depending on the provider used, this information may be empty. | Source | JSON | User properties. Corresponds to the JSON file containing user identity information. Depending on the provider used, this information may be more or less detailed (depending on the authorized "scopes"). | Valid | Boolean | - True if the identity is valid,
- False otherwise.
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|