Title: How to Integrate the New ‘Sign in with Apple’ Button in Your iOS App?
1(No Transcript)
2How to Integrate the New Sign in with Apple
Button in Your iOS App?
- The new Sign in with Apple button announced by
Apple is a part of iOS 13 announcements. This
button provides Apple ID single sign-on feature
that is similar to the sign-in buttons of Google,
Facebook, and Twitter. This secure sign-in option
ensures maintaining privacy. - Personal information such as email addresses will
be masked by Apple, while the installed apps will
be still allowed to indirectly contact users.
Users can have a control over the information
that may be shared with the destination app. - Heres where the need for apps to update and
integrate this Sign in with Apple button
arises. Since it will not be possible to access
customer information that they are looking for,
several apps may choose not to add the Apple ID
login.
3Factors That Necessitate Sign in With Apple?
- Of late, there have been quite a lot of scandals
shrouding security and privacy breaches, among
some of global corporations such as Facebook and
Google. Amid such unwanted chaos, the sign in
with Apple feature comes as a breather that
protects privacy. - Requiring collecting only users name and their
email addresses while not demanding any other
data, this feature certainly enables fast and
easy signing in. - The following are a few of the key benefits of
this innovative feature crated by Apple
Enhanced security
Fraud is prevented
Multiple platforms
No Repetitive logins
4Enhanced security
Fraud is prevented
Advanced machine learning helps sending alerts
immediately when a new account on the app doesnt
appear to be a real person. Developers may take
such alerts into consideration while providing
permission to the apps features.
- Each account that uses Sign in with Apple ID is
protected automatically using two-factor
authentication. After the customary username and
password combination, adding Face ID or Touch ID
thus helps achieving this.
5Multiple platforms
No Repetitive logins
If a user has an account already with the app, it
alerts them and asks if they would like to log in
using their existing email ID.
- It is capable of working on iOS, tvOS, watchOS,
and macOS. It can also be deployed in different
versions of apps running on other platforms.
6Steps to Integrate Sign in With Apple Feature
in iOS Apps
- Apple has introduced an easy and fast way to sign
in to applications using this feature. It allows
setting up user accounts with specific names,
unique stable identifiers, and verified email
addresses. These allow users to sign in to their
apps using their individual Apple ID. - The following are the steps for integrating this
innovative feature in mobile applications - The first step is creating a new project in
Xcode. Sign in with Apple capability needs to be
added in the project. An entitlement will be
added and that will allow the app to use up the
sign in with Apple feature. - The ASAuthorizationAppleIDButton provided by
Authentication services helps users in initiating
the sign in with Apple flow. By creating an
instance of ASAuthorizationAppleIDButton and
adding the target for touchUpInside action, this
button may be added more easily.
Project configuration
Adding Apple Login Button
7Login Button Press Handling
During Sign in with Apple button press, a
provider has to be used for creating the request
that we may use for initializing a controller
which would perform the request. An
ASAuthorization.Scope value in the array to a
request can be used.
Setup Flow of Existing Account
Since there is possibility of the user having
already logged in with an application,
ASAuthorizationAppleIDProvider and
ASAuthorizationPasswordProvider need to be
reused. This will create a request that may be
used for initializing a controller.
ASAuthorizationController Delegate Handling
Upon successfully completing the last step, the
ASAuthorizationController Delegate receives the
authorization consisting of a credential which
has gotten a user identifier.
8Apple Developer Account Configuration
Upon trying to sign in, an error message showing
AUTH_ALERT_SIGN_UP_NO_COMLETED will appear. Only
after creating a key with Sign in with Apple
enabled in the developer account, signing in
would work.
Resetting an Existing Account
For resetting existing account to check out the
first sign in experience, settings app of the iOS
device must be opened. Tapping on the account in
Apple ID header, security and password section
has to be opened.
Credential State Checking
The user identifier received from
ASAuthorizationAppleIDCredential object may be
used for checking the credential state.
Registration of Emails and Domains for
Communication
Domains and email addresses used by the
organization need to be registered for
communication.
9Conclusion
- Offering the next level of security to users, the
new sign in button from Apple enables users to
decide what information to share, with
destination apps. Since no one wants to make
public, any of their personal information these
days, Apples new move is seen to be a boon for
users.
Read More
E-mail us bd_at_w2ssolutions.com Call us 91
73387 73388 Website www.way2smile.com
Powered by WAY2SMILE