Comments (10)
set SameSite=none
instead of redirect.
from omniauth-apple.
It reproduces if you store session in cookies.
Chrome browser doesn't send cookies on POST request from the Apple's site, so a new session is created by default.
A workaround is implemented in the link above:
1 Prevented the creation of a new session on a POST request
2 Redirected request to be sent to the same location with the same parameters. Since there is a GET request after the redirect, Chrome includes cookies in the request.
from omniauth-apple.
Just monkeypatch class OmniAuth::Strategies::Apple with the method callback_phase from the link
from omniauth-apple.
I'd prefer it to be merged into this gem, but it's up to maintainers.
from omniauth-apple.
from omniauth-apple.
What causes this error?
from omniauth-apple.
Where should I be implementing this solution? Bit stuck on this one..
from omniauth-apple.
Just monkeypatch class OmniAuth::Strategies::Apple with the method callback_phase from the link
Thanks! that did the trick
from omniauth-apple.
Thank you for all your work!
from omniauth-apple.
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?
from omniauth-apple.
Related Issues (20)
- Authentication failure! HTTP Origin header (https://appleid.apple.com) didn't match request.base_url (https://mysite.com) HOT 8
- nonce is optional in callback HOT 13
- Getting error as id_token_claims_invalid | nonce invalid HOT 2
- Authentication failure! no implicit conversion of String into Array: TypeError, no implicit conversion of String into Array
- Apple SSO Callback Phase throws a OAuth2::AccessToken.from_hash error HOT 1
- ERROR -- omniauth: (apple) Authentication failure! invalid_credentials: OAuth2::Error, invalid_request: {"error":"invalid_request"} HOT 2
- Please, add to Readme some important settings. HOT 3
- Does not return firstName and lastName HOT 2
- Doesn't receive code in mobile browser HOT 2
- "stored_nonce" is nil due to different sessions HOT 9
- Authentication failure! invalid_credentials: OAuth2::Error, invalid_request: {"error":"invalid_request"} HOT 2
- Is Ruby 2.1.1 supported by omniauth-apple ? HOT 3
- Error when callback ? HOT 12
- Can't use Sign In With Apple JS HOT 25
- Fetching keys fails in production HOT 8
- Stuck on Request Phase Initiated HOT 1
- Apple's /auth/revoke supported? HOT 1
- Oauth2 version 2.0.0 breaks omniauth-apple HOT 4
- Remove version lock for rack-protection HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from omniauth-apple.