Search Unity

  1. We are migrating the Unity Forums to Unity Discussions by the end of July. Read our announcement for more information and let us know if you have any questions.
    Dismiss Notice
  2. Dismiss Notice

Discussion Simple Apple Sign-in

Discussion in 'Assets and Asset Store' started by hippogames, May 12, 2024.

  1. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    237
    SocialMediaImage.png

    Simple Apple Sign-In
    provides "Sign in with Apple" using OAuth 2.0 for Android, iOS, Windows, Mac, Universal Windows Platform (UWP) and WebGL apps made with Unity. You can also get access tokens for further API calls.

    Important notice
    The asset doesn't utilize native SDK that is available for iOS only. Users are redirected to Apple ID website to perform sign-in. If your app is primary for iOS, consider using native SDK.

    Features
    • Cross-platform user auth for cross-platform games and apps
    • No plugins, no 3rd party auth libs, no dependencies
    • Get access tokens for further API calls
    • More security for client-server apps (it's possible to get all user data on a server to avoid tampering)
    • SFSafariViewController is used on iOS (required by App Store review)
    • Deep linking for Windows (UNITY_STANDALONE_WIN)
    • JWT signing with p8 private key (ES256)
    How does it work?
    • Your app navigates users to Apple Authorization Endpoint in a web browser
    • Users perform sign-in using their login and password
    • Apple Authorization Endpoint redirects users to Return URL (which is Authorization Middleware, or may be your website as well) and provides an authorization code (which can be later exchanged for access_token), id_token (if requested) and user info like first_name, last_name and email (if requested and only once at first sign-in)
    • Authorization Middleware transmits the authorization code and user info to your app (using deep linking when possible, or with a web request made by the app when not)
    • The app exchanges the code for access_token (and may receive id_token as well) by creating JWT signed with p8 private key (ES256)
    Asset Store: http://u3d.as/3hPa
    Wiki: https://github.com/hippogamesunity/SimpleAppleSignIn/wiki

    Screenshot_1.png Screenshot_2.png Screenshot_3.png Screenshot_4.png