Comments (2)
After enabling additional logging on the OAuth2 gem, I found that the request to https://appleid.apple.com/auth/token
does not include the code
param in the request body. The code
param was actually passed, but it was null. I was able to bypass omniauth and send a direct request to the apple auth token endpoint including the code
param and got back the JWT to decode to get the auth info. When I sent the request a subsequent time without the code
param, I got the same error message as above.
INFO -- request: POST https://appleid.apple.com/auth/token
2023-11-07 11:54:23.878003 D [49453:puma srv tp 005] Rails -- (apple) Callback phase initiated.
I, [2023-11-07T11:54:23.881212 #49453] INFO -- request: User-Agent: "Faraday v2.7.4"
Content-Type: "application/x-www-form-urlencoded"
Traceparent: "00-4ppd0xdr93c3195e22f1dbdd788b29f2-248371a21ff04849-01"
Tracestate: "es=s:1.0"
Elastic-Apm-Traceparent: "00-4ccf0fdd93c2795e22f1dbdd777b29f2-265371a21fa04849-01"
I, [2023-11-07T11:54:23.883525 #49453] INFO -- request: {"client_id"=>"com.client.id",
"client_secret"=>"secret",
"grant_type"=>"authorization_code",
"code"=>nil,
"redirect_uri"=>"https://lvh.me"}
from omniauth-apple.
@wonderffle were you able to resolve the above error?
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
- 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
- Nonce mismatch Error HOT 10
- 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.