1 / 9

How to Integrate the New ‘Sign in with Apple’ Button in Your iOS App?

The new sign in tool from Apple allows exercising complete control over permissions for apps to access user information, while giving a consistent sign-in experience.

way2smile
Télécharger la présentation

How to Integrate the New ‘Sign in with Apple’ Button in Your iOS App?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How 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. Here’s 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.

  2. Factors 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

  3. Enhanced security Fraud is prevented 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. Advanced machine learning helps sending alerts immediately when a new account on the app doesn’t appear to be a real person. Developers may take such alerts into consideration while providing permission to the app’s features.

  4. Multiple platforms No Repetitive logins 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. 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.

  5. Steps 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

  6. Login 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.

  7. Apple 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.

  8. Conclusion 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, Apple’s new move is seen to be a boon for users. Read More E-mail us : bd@w2ssolutions.com Call us : +91 73387 73388 Website : www.way2smile.com Powered by WAY2SMILE

More Related