Skip to content
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

Fix omniauth-apple compatibility with OAuth2 ... maybe #95

Closed

Conversation

bradgessler
Copy link

Addresses the issues from #64, which I barely understand. I took the callback phase from https://github.com/discourse/discourse-apple-auth/blob/40ef076fa744d562ce54f3f30921a1b387e042fb/lib/omniauth_apple.rb#L60-L72, dropped it into a branch, and it worked without issue.

I can't speak for the security of this though, could somebody else smarter than myself chime in about it?

…ponse.

This approach drops the callback_phase block from https://github.com/discourse/discourse-apple-auth/blob/40ef076fa744d562ce54f3f30921a1b387e042fb/lib/omniauth_apple.rb#L60-L72 into this plugin.

It works, but I can't speak for the security of this approach.
@nov
Copy link
Collaborator

nov commented Oct 15, 2022

handle POST request as POST, by skipping CSRF detection and SameSite=none cookies etc.
no redirect to GET.

@nov nov closed this Oct 15, 2022
@bradgessler
Copy link
Author

bradgessler commented Oct 16, 2022

I don't follow, could you elaborate?

Installing the gem from master doesn't work, so I consider this integration broken until either this or what you describe is implemented into the gem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants