|
|
|
|
|
- Properties specific to the description of AppleID variables
AppleID (Type of variable) In french: AppleID
The AppleID type corresponds to the identifier resulting from a successful Apple ID authentication. The characteristics of this type of variable can be defined and changed using different WLanguage properties. Remarks: - This feature requires:
- iOS 13 or higher; or macOS 10.15 or higher.
- the activation of "Sign In" in the "Provisioning profile" of your application.
- When authenticating with AppleSignIn, a WLanguage procedure is used to get the result of the authentication (AppleID variable).
- For more details on the declaration of this type of variable and the use of WLanguage properties, see Declaring a variable.
INTERNAL PROCEDURE auth(c is AppleID)
IF c.Valid = False THEN
IF ErrorInfo(errCode) = 600062 THEN
STC_Auth = "Authentication canceled by the user."
ELSE
STC_Auth = "Authentication error" + CR + ErrorInfo()
END
ELSE
STC_Auth = "Hello " + c.User + CR
STC_Auth += c.LastName + " " + c.FirstName + CR
STC_Auth += c.Email + CR
STC_Auth += c.Source + CR
END
END
AppleSignIn(auth)
Remarks Properties specific to the description of AppleID variables The following properties can be used to handle an Apple ID: | | | Property name | Type used | Effect |
---|
AuthorizationCode | Buffer | Ephemeral token used by your application as proof of authorization (e.g. https://appleid.apple.com/auth/token). | Email | Character string | Email of the authenticated user. Remark: This can be a bounce email provided by Apple (which allows transfer to the user's real email address).This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication. | FirstName | Character string | First name of the authenticated user. This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication. | IDToken | Buffer | JWT (JSON Web Token). | LastName | Character string | Last name of the authenticated user. This property is specified only during the first authentication. If possible, this information will be provided on the device that performed the first authentication. | Source | JSON | Payload of the decoded JWT. | User | Character string | Identifier associated with the authenticated user. | Valid | Boolean | - True if the authentication was successful,
- False otherwise.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|