|
|
|
|
|
- Properties specific to AppleID variables
AppleID (Variable type) In french: AppleID
The AppleID type corresponds to the identifier resulting from a successful Apple ID authentication. You can define and change the characteristics of this type of variable 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
LIB_Auth = "Vous avez annulé l'authentification."
ELSE
LIB_Auth = "Erreur pendant l'authentification" + CR + ErrorInfo()
END
ELSE
LIB_Auth = "Bonjour " + c.User + CR
LIB_Auth += c.LastName + " " + c.FirstName + CR
LIB_Auth += c.Email + CR
LIB_Auth += c.Source + CR
END
END
AppleSignIn(auth)
Properties Properties specific to 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. Note: This email may be a bounce email provided by Apple (which allows forwarding 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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|