Skip to content

Conversation

@JamesChevalier
Copy link

@JamesChevalier JamesChevalier commented Jun 14, 2024

This line causes logins to fail in rack v3.1+
https://github.com/omniauth/omniauth-oauth/blob/master/lib/omniauth/strategies/oauth.rb#L51

It must be changed from
opts[:oauth_verifier] = request["oauth_verifier"]
to
opts[:oauth_verifier] = request.params["oauth_verifier"]

Due to my Rails app's state, I was only able to test request.params["oauth_verifier"] going back to rack v2.2.4 where it continued to be functional.

Let me know if you'd prefer something like Gem.loaded_specs["rack"].version >= Gem::Version.new("3.0") to conditionally switch to the updated syntax.

willnet added a commit to willnet/omniauth-oauth that referenced this pull request Jun 27, 2024
@BobbyMcWho
Copy link
Member

resolved in #25

@BobbyMcWho BobbyMcWho closed this Aug 27, 2024
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