PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
New WINDEV Mobile 25 feature!
  • Properties specific to the description of AppleID 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
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 modified by several 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).
  • See Declaring a variable for more details on the declaration of this type of variable and the use of WLanguage properties.
Example
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 nameType usedEffect
AuthorizationCodeBufferEphemeral token used by your application as proof of authorization (e.g. https://appleid.apple.com/auth/token).
EmailCharacter stringEmail 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.
IDTokenBufferJWT (JSON Web Token).
LastNameCharacter stringLast 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.
FirstNameCharacter stringFirst 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.
SourceJSONPayload of the decoded JWT.
UserCharacter stringIdentifier associated with the authenticated user.
ValidBoolean
  • True if the authentication was successful,
  • False otherwise.

Remark: These properties can be handled by using one of the following syntaxes:
  • <Variable name>..<Property name>
  • <Variable name>.<Property name>
Minimum version required
  • Version 25
Comments
Click [Add] to post a comment