Planning on Adding Sign In With Apple?

I was reading about Sign In With Apple on Mac Rumors. Seems pretty cool.

Anyone else thinking about adding it to their Meteor app? Would be a great addition to accounts

It could prove a popular option with its enhanced security and anonymization features.

1 Like

if it’s oauth-like, you should be able to wrap it up with the OAuth package. Lots of third party account packages do that.

I have it somewhere on my list of todos, so if no one beats me to it, I will eventually do it.

2 Likes

I have started on it. Will post when I have something working.

4 Likes

Why not take people on board while working on it?

Yes. You’re right. I’ll share my code and we can figure out the last bit together. For some reason the reply in the redirect from Apple that should contain the code and state is empty but only in my meteor oauth implementation and not if test it on another redirect url…

Repo coming tomorrow. I need some sleep…

Ok, my tomorrow spanned a few days. Sorry about that…

But I have working code! Still needs some love but it is something to start from.

The biggest problem I had was that the oauth flow in meteor isn’t built for receiving data in the post body. I had to hack oauth_server.js in the oauth package to allow that. Someone with better knowledge can certainly improve on that code.

The packages are here:
https://github.com/jramer/accounts-apple
https://github.com/jramer/apple-oauth
https://github.com/jramer/apple-config-ui
https://github.com/jramer/meteor/tree/feature/oauth-post-body

Pull request are most welcome!

I have tested it with success in:
:white_check_mark: desktop chrome

Found out that it’s not yet working in:
:x: ios browsers (ios13 doesn’t use the popup, guessing it will be similar in Safari for macos catalina)

Pretty certain that it needs some love before it works in cordova.

3 Likes

That’s pretty ironic. :laughing:

:wink: yes.
Time to bring out the lightning cable and Safari dev Console…

The login flow is pretty sweet with faceid/touchid.

1 Like

Sweet! Please consider adding it to linked accounts:

Sure. It need some work first though.

Do you have any input on how to best implement the fix for the post body data I mentioned in my post?

I would check Meteor PRs, if I remember correctly there was something along those lines.

1 Like

Ah! Here is the PR that should add that capability:

2 Likes