|
|
|
|
- Necessary conditions
- Creating a standard-looking "Sign In with Apple" Button control
AppleSignIn (Function) In french: AppleSignIn Used to implement authentication via "Sign In with Apple" on devices running on iOS 13 and higher. An external window allows the user to sign in using their AppleID credentials.
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)
Syntax
AppleSignIn(<WLanguage procedure>)
Remarks Necessary conditions This function requires: - iOS 13 or higher; or macOS 10.15 or higher.
- the activation of "Sign In" in the "Provisioning profile" of your application. Authentication is therefore not allowed in tests run from WMDev. Only tests run from a Mac allow for authentication.
Creating a standard-looking "Sign In with Apple" Button control To create an Apple authentication Button control with the right look: - Create a Button control in your window: on the "Creation" tab, in the "Usual controls" group, click "Button".
- If necessary, open the "Modifier" pane: on the "Home" tab, in the "Environment" group, expand "Panes", select "Panes", and then select "Modifier".
- Select the Button control: the characteristics of the control appear in the "Modifier" pane.
- In the "Details" section of the "Modifier" pane:
- In "Apple button", select "Sign in".
- In "Sign In with Apple button - Style", select the desired style for the button ("According to theme", "Black", "White", "White outline").
Then, simple write the WLanguage code of the control to implement "Sign In with Apple".
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|