apple-sign-in

Sign In with Apple: How to achieve it for existing app?

我只是一个虾纸丫 提交于 2021-02-18 22:01:36
问题 With recent major updates released by Apple on 3rd June 2019, there is one feature Sign In with Apple. Information about 'how to use this' in app is available but I can see any sample source code, how to achieve this feature in your existing iOS app. I'm looking for a sample source code, as I can't understand how to start with this. And what I've tried: Sign In with Apple 回答1: First step is you need to import AuthenticationServices How to check that user credential state let appleIDProvider =

Apple Sign-in not working on iOS 14 Simulator

倾然丶 夕夏残阳落幕 提交于 2021-02-18 10:39:11
问题 When I try to log in for the simulator in iOS 14, the loading spinner just spins forever. There is a thread for this on the Apple developer forums here but no solutions and no response from Apple. I can certainly test on the device, but testing on the simulator is obviously easier for iteration. Does anyone have a solution for this problem? 回答1: This is one of the known issues in iOS 14, that has not been solved by Apple as of today yet. (almost 4 months old) The problem has not been fixed in

How to get Firebase idToken from AuthResult?

江枫思渺然 提交于 2021-02-11 15:27:33
问题 Firebase are providing AuthResult on the callback for user sign in using startActivityForSignInWithProvider (in my case the provider is apple on Android platform). I can't seem to fetch the idToken from it in a proper (synchronous) way. So far I found two options, both aren't satisfying: Option 1: casting ((OAuthCredential)authResult.getCredential()).getIdToken() This works but I'm not sure if it's a safe cast. Plis, I'm thinking, if Firebase would have wanted us to fetch the idToken this way

Sign in with apple throws Authorization failed: Error Domain=AKAuthenticationError Code=-7026 [closed]

喜欢而已 提交于 2021-02-06 15:31:29
问题 Closed. This question needs debugging details. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 1 year ago . Improve this question So I am getting the following code and I am unsure why that would be? Wondering if anyone knows what would cause this? Authorization failed: Error Domain=AKAuthenticationError Code=-7026 "(null)" UserInfo={AKClientBundleID=com.radiomedia.drn.drn1} something went wrong Error Domain

Why is “ASAuthorizationControllerDelegate” not called on sign in?

孤街浪徒 提交于 2021-01-29 19:54:42
问题 I've added code to support Sign in with Apple. The code works fine, but the callback delegate function is not called when TouchID succeeds on a real device (iPhone 7 Plus). What should I check to fix this? 回答1: I found the solution. Do write delegate function to public methods. 来源: https://stackoverflow.com/questions/58907137/why-is-asauthorizationcontrollerdelegate-not-called-on-sign-in

What's the purpose of “Verify a User” in “Sign in with Apple”?

风格不统一 提交于 2021-01-29 13:29:15
问题 In Sign in with Apple REST API | Apple Developer Documentation, there are two articles, Authenticating Users with Sign in with Apple | Apple Developer Documentation and Verifying a User | Apple Developer Documentation. I can get the user identifier in "Authenticating Users with Sign in with Apple", but I'm having trouble understanding why "Verify the Identity Token" is needed giving that we have already got the user identifier. What's the purpose of "Verify the Identity Token"? And what's the

How to integrate sign in with apple in iOS 12 or earlier? [duplicate]

谁说我不能喝 提交于 2020-12-31 02:51:33
问题 This question already has answers here : Will “Sign in With Apple” allow apps to be backward compatible with iOS 12 and lower? (2 answers) Closed 3 months ago . My app was rejected due to a third-party login service. So I've implemented Sign in with Apple for iOS 13. Problem is how to provide backward compatibility for iOS 12 or earlier. 回答1: In my case, it only works (for iOS12 and below) if I avoid importing CryptoKit for the sha256 encryption. Instead of using the sha256 function provided

How to integrate sign in with apple in iOS 12 or earlier? [duplicate]

主宰稳场 提交于 2020-12-31 02:40:26
问题 This question already has answers here : Will “Sign in With Apple” allow apps to be backward compatible with iOS 12 and lower? (2 answers) Closed 3 months ago . My app was rejected due to a third-party login service. So I've implemented Sign in with Apple for iOS 13. Problem is how to provide backward compatibility for iOS 12 or earlier. 回答1: In my case, it only works (for iOS12 and below) if I avoid importing CryptoKit for the sha256 encryption. Instead of using the sha256 function provided

How to revoke Sign in with Apple credentials for a specific app?

跟風遠走 提交于 2020-12-08 05:36:39
问题 We are testing the new Sign in with Apple feature with our application, and on the initial request we are provided with the users full name and email address (if the user enabled these options). However on subsequent requests, this data is not provided only the identityToken and accessToken are provided. This has made testing this service difficult as each time we want to test the sign up of a new user, we need a new user account. Is there a way to revoke which app(s) are using Sign in with