Getting started with Sign in with Apple using Firebase Authentication on Apple platforms

preview_player
Показать описание
In this video, Firebase Senior Developer Advocate @PeterFriese will walk you through how to get started with sign in with Apple on iOS and Apple's other platforms. Wondering how to implement the sign in with Apple button, and how to structure your app? Curious about what a nonce is and why it protects your app against a replay attack? Wonder no more, Peter has you covered!

Chapters:
0:00 What we're going to cover in this video
0:49 The sample app
1:28 Adding the SDK
2:00 Enabling Firebase Authentication
3:15 App Store Review Guidelines
3:47 Adding the Firebase Emulator
5:06 Implementing the Sign in with Apple button
6:56 Implementing handleSignInWithAppleRequest
7:34 What's a nonce?
8:56 Implementing handleSignInWithAppleCompletion
11:05 Demo: Signing in with Apple
11:54 Behind the scenes: inspecting the ID token
12:41 Behind the scenes: verifying the nonce
13:28 Assigning the user's full name from the Apple ID token
15:30 Signing out
15:52 Monitoring authentication state
16:13 Where to go from here?

Resources:

#FirebaseFundamentals
Рекомендации по теме
Комментарии
Автор

The link to source code in description points to the wrong sample. Please fix.

RatulSarna
Автор

Just what I was looking for. Thanks Peter!

herroic
Автор

Thanks @Peter for the great video! One thing I'd like to add. If you already did sign in once before and need the email when logging back in, you need to decode the idTokenString in order to get the email. This is because the email field from the appleIDCredential from is also not being populated when signing back in. Hope this helps someone :)

kalmicka
Автор

Very rarely do I need a guide on wiring up the UI to Firebase code. What I really need is a guide showing which items in Apple Developer Console map to items in Firebase Console. The Firebase docs are woefully insufficient in this area. Especially once you start touching SIWA on web.

LukePighetti
Автор

Thank u for this amazing resource! I have a question: when deleting an account, do we need to revoke the authentication token as stated in the firebase and Apple docs? If not, why? I realize this wasn't done in this tutorial and that got me curious

stilakid
Автор

Hi, do you have an iOS auth integration for the web using Firebase js SDK?

mycloudvip
Автор

Is Firebase free if only Firebase Auth is needed for the app? Some said it is free, others said no. I'm confused. Please advise. Much appreciated.

prairieln
Автор

Unity's Sign In With Apple Asset Storage Package is not available in Unity Asset Store is there any other suggestions?

MuhammedFasilK-gn
Автор

Does this persist logins between app launches? I've used the sample code, and the username/password is persisted, but sign in with Apple is not.

ampsonic
Автор

Very helpful. One issue - in the "Profile View" initially it showed my name in the email form, then I deleted my account, signed in with apple, and now the field is blank. Is this expected?

ethanmaxey
Автор

Does sign in with apple required Apple Developers Account? I don't see "sign in with apple" in signing & capabilities in Xcode.

alamgirkhan
Автор

This was super helpful thanks! Also, is it possible to add google sign in to this demo? If so, how would I go about that? I am new to xcode so I am still learning how all of this works

danielduggin
Автор

Authentication error: – "Firebase: Error how to fix this

Kalpesh-uq
Автор

Does the email in Firebase get updated if the Apple account gets transferred (Changing the email in your apple account)? The 's credentialState will equal .transferred

seccat
welcome to shbcf.ru