All Projects → AntonReality → AppleSignIn

AntonReality / AppleSignIn

Licence: MIT license
Library for fast an easy way to implement Apple Sign In.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to AppleSignIn

verify-apple-id-token
Verify the Apple id token on the server side.
Stars: ✭ 49 (+157.89%)
Mutual labels:  login, signin
react-signin-form
Concept for Sign in / Sign Up form
Stars: ✭ 109 (+473.68%)
Mutual labels:  login, signin
springboot-mongodb-security
Spring Boot, Security, and Data MongoDB Authentication Example
Stars: ✭ 22 (+15.79%)
Mutual labels:  login, signin
authorize-me
Authorization with social networks
Stars: ✭ 44 (+131.58%)
Mutual labels:  login, signin
Alerts And Pickers
Advanced usage of UIAlertController and pickers based on it: Telegram, Contacts, Location, PhotoLibrary, Country, Phone Code, Currency, Date...
Stars: ✭ 5,267 (+27621.05%)
Mutual labels:  login, signin
vue-apple-signin
A simple Vue plugin to include an Apple sign-in button into your web app.
Stars: ✭ 19 (+0%)
Mutual labels:  login, signin
google-one-tap
Google One Tap Login
Stars: ✭ 37 (+94.74%)
Mutual labels:  login, signin
react-apple-signin-auth
 Apple signin for React using the official Apple JS SDK
Stars: ✭ 58 (+205.26%)
Mutual labels:  login, signin
node-facebook-twitter-google-github-login
Node, Express, Mongoose, Passport, Facebook, Twitter, Google and Github Authentication (Login)
Stars: ✭ 31 (+63.16%)
Mutual labels:  login, signin
Supertokens Core
Open source alternative to Auth0 / Firebase Auth / AWS Cognito
Stars: ✭ 2,907 (+15200%)
Mutual labels:  login, signin
react-linkedin-login-oauth2
Easily get Authorization Code from Linked In to log in without redirecting.
Stars: ✭ 83 (+336.84%)
Mutual labels:  login, signin
Login-Signup-Templates
Collection of Login Signup Templates
Stars: ✭ 21 (+10.53%)
Mutual labels:  login
vue-koa2-login
🍥 Vue + Koa2 实现前后端注册登录流程
Stars: ✭ 23 (+21.05%)
Mutual labels:  login
social-auth-kivy
Integrate Google, Facebook, Github & Twitter login in kivy applications
Stars: ✭ 133 (+600%)
Mutual labels:  login
AppDemo
简单易用的ios应用模板(ios app demo)🍭
Stars: ✭ 29 (+52.63%)
Mutual labels:  applesignin
custom-login
Custom Login for WordPress.
Stars: ✭ 28 (+47.37%)
Mutual labels:  login
SharpPanel
C# Admin Control Panel Finder For Windows
Stars: ✭ 34 (+78.95%)
Mutual labels:  login
login-designer
Official repository of the Login Designer WordPress Plugin
Stars: ✭ 97 (+410.53%)
Mutual labels:  login
undertow-pac4j
Security library for Undertow: OAuth, CAS, SAML, OpenID Connect, LDAP, JWT...
Stars: ✭ 35 (+84.21%)
Mutual labels:  login
steam-auth
A simple PHP Steam login and User Detail package
Stars: ✭ 16 (-15.79%)
Mutual labels:  login

CocoaPods Compatible Carthage Compatible Platform Facebook Open Source Helpers

AppleSignIn is the fast and easy way to implement Sign in with Apple introduced on Apple WWDC 2019.

Features

  • Initialization Sign in with Apple button from code.
  • Initialization Sign in with Apple from storyboard or xib.
  • Login with default button.
  • Login with custom button.
  • Add MacOS support.
  • Add WatchOS support.
  • Add Cocoapods support.
  • Add Cartage support.

Requirements

  • iOS 13.0+
  • Xcode 11.0+
  • Swift 5+

Installation

CocoaPods

CocoaPods is a dependency manager for Cocoa projects. For usage and installation instructions, visit their website. To integrate AppleSignIn into your Xcode project using CocoaPods, specify it in your Podfile:

pod 'AppleSignIn'

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate AppleSignIn into your Xcode project using Carthage, specify it in your Cartfile:

github "AntonReality/AppleSignIn" "0.0.1"

Manually

If you prefer not to use any of the dependency mentioned above, you can integrate AppleSignIn into your project manually. Just drag & drop the Sources folder to your project.

Usage

Pre-requirments:

  • Set your development team in the Signing & Capabilities tab so Xcode can create a provisioning profile that uses the Sign In with Apple capability.
  • Add Sign In with Apple capability.
  • Choose a target device that you’re signed into with an Apple ID that uses Two-Factor Authentication.

Adding Sign in with Apple with default button.

import AppleSignIn

let button = AppleLoginButton()
button.delegate = self

view.addSubview(button)

Implement delegate methods to receive user and handle errors.

func didCompleteAuthorizationWith(user: AppleUser) {
    // Do any additional stuff with your backend.
}

func didCompleteAuthorizationWith(error: Error) {
    // Handle error.
}

Adding Sign in with Apple with a custom action/button.

import AppleSignIn

guard let window = view.window else { return }

let appleLoginManager = AppleLoginManager()
appleLoginManager.delegate = self

appleLoginManager.performAppleLoginRequest(in: window)

performAppleLoginRequest requires to specify window where Apple Sign In screen should be presented.

Implement delegate methods to receive user and handle errors.

func didCompleteAuthorizationWith(user: AppleUser) {
    // Do any additional stuff with your backend.
}

func didCompleteAuthorizationWith(error: Error) {
    // Handle error.
}

That's it!

Easy right? For more details check ExampleProject.

Contribution

Feel free to add your comments/commits/pull requests. Any additional help is appreciated.

License

AppleSignIn is released under the MIT license. See LICENSE for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].