-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use JWT gem and some refactor #7
Conversation
What do you think (besides the 😄)? |
This PR appears to solve the issue with the lack of name and email? (which is critical to adoption for us) |
No, unfortunately not. Apple needs to provide a REST API endpoint to retrieve name/email as they currently only pass this information upon successful authentication once and not on subsequent authentications. → It's on Apple now to get their homework done |
Let me check, I think that's probably good enough for our use case (Authentication and account setup in Discourse). |
Could be, but imagine the following: User signs up via Apple, then deletes the account. Next time during "Sign in with Apple", the authentication would be successful, but would not include email/name anymore as it was provided on first auth |
Derp, of course there's already a PR open... fixes #10. |
By the way, this PR also handles #9 |
@nhosoya with iOS 13 and the "Sign in with Apple" requirement coming soon, it's important that we get the omniauth integration working well. My team at work is focused on this right now, and it would be very valuable to have an up-to-date version of this gem on Rubygems. Do you think you'll have time to take a look at this and merge the PR soon, or possibly allow another maintainer to take over? |
Move raw_info into extra hash
Move raw_info into extra hash
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
The
jwt
gem is way more mature and more widely used thanjson-jwt
.