quavedev / accounts-apple

Sign in with Apple OAuth2 handler for Meteor.
MIT License
2 stars 4 forks source link

Does not work on macOS Safari (Dev Systems) #2

Open derwaldgeist opened 3 years ago

derwaldgeist commented 3 years ago

I've successfully implemented the Apple OAuth workflow and it works in Chrome and Firefox.

However, on macOS Safari, there is no popup. Instead, the authentication is shown in-place, as an overlay to the web app. This breaks the workflow and no sign-in is possible. It seems as if Meteor is not prepared for this login scenario. The thing is: macOS Safari is a pretty important browser for Sign in with Apple... :-)

I also noticed that on my testing machine the redirect goes back to localhost instead of the domain of my tunnel provider, localtunnel, although the original website is pulled from there. I have no idea why this happens.

derwaldgeist commented 3 years ago

I noticed that it works on a deployed production system, so only dev scenarios are affected. I guess it's related to the forward to the localhost instead of the tunnel host.

The user experience is a bit strange, though, because the login page shows up briefly, before the login takes place. Is there a way to prevent his, e.g. by using a dedicated route?