MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
270 stars 243 forks source link

Use with Apple sign-in, no custom redirect scheme allowed #333

Closed jomag closed 1 year ago

jomag commented 2 years ago

I've successfully implemented Flutter AppAuth for use with Microsoft and Google on both iOS and Android. Now I'm attempting to do the same for sign-in with Apple.

I have it working all the way through 2fa etc, but the token is never received by the app.

I believe the problem is that Apple does not allow using a custom scheme for redirects. https must be used. I've set up a universal link for the redirect URI, and I do receive the response that way, but it's eaten by the navigator and never reaches Flutter AppAuth.

Has Flutter AppAuth been successfully tested with Apple Sign-In, and if so how do I get around this issue?

MaikuB commented 2 years ago

I've never used Apple sign in so not something I know to answer. I don't know if people have used the underlying AppAuth iOS SDK with Apple sign in. You may need to ask the wider community on places like Slack, Stack Overflow etc