-
Notifications
You must be signed in to change notification settings - Fork 100
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
Nonce mismatch Error #76
Comments
What causes this error? |
It reproduces if you store session in cookies. |
Where should I be implementing this solution? Bit stuck on this one.. |
Just monkeypatch class OmniAuth::Strategies::Apple with the method callback_phase from the link |
I'd prefer it to be merged into this gem, but it's up to maintainers. |
Thanks! that did the trick |
set |
Thank you for all your work! |
Instead of opening up the session to potential security risks, we may merge #107 and allow the nonce to be stored in its own encypted cookie? |
Any idea what might be causing this error? Everything seems to be "wired" correctly when I login into my web app. But I see this flash message.
Could not authenticate you from Apple because "Nonce mismatch".
One thing I noticed if I change
:lax
to:none
, the error goes away. However, it no longer works in Chrome. Not ideal.config.action_dispatch.cookies_same_site_protection = :lax
Logs:
ERROR -- omniauth: (apple) Authentication failure! nonce_mismatch: OmniAuth::Strategies::OAuth2::CallbackError, nonce_mismatch | nonce mismatch
The text was updated successfully, but these errors were encountered: