Open boyfunky opened 11 months ago
@boyfunky same issue and I resolved it.
OAuth2::AccessToken.from_hash:
hashcontained more than one 'token' key (["access_token", "id_token"]); using "access_token".
this is a warning, you don't need to pay attention to it.
It seems to have a problem with the lastest version, so I used v1.2.2 and resolved it. But it will show a new error
ERROR -- omniauth: (apple) Authentication failure! nonce_mismatch: OmniAuth::Strategies::OAuth2::CallbackError, nonce_mismatch | nonce mismatch
You have to use monkey patch here https://github.com/nhosoya/omniauth-apple/issues/76#issuecomment-930891853
Hope to help you.
I am trying to implement Apple SSO using the
omniauth_apple
gem in Ruby on Rails.In my devise.rb, i have the following config
In my omniauth_callbacks_controller.rb, i have the following
My user.rb
in my routes, i also have specification to receive callbacks for each provider
Now when i click the Sign in with Apple button, it does redirect me to sign in my username and password from Apple but when the callback phase is initiated, it returns an error and does not redirect to the controller. I get this error but I honestly do not know how or where to start to resolve it
Does anyone have experience using the omniauth_apple gem with Devise to setup and fully integrate Apple SSO on Rails? Please help