Skip to content

Undefined method 'wrap_values' for an instance of OAuth::RequestProxy::ActionControllerRequest #340

@MrSerth

Description

@MrSerth

Since version 1.1.1, a NoMethodError is thrown in OAuth::RequestProxy::ActionControllerRequest#parameters:

NoMethodError:
       undefined method 'wrap_values' for an instance of OAuth::RequestProxy::ActionControllerRequest
     # /gems/ruby-3.4.6/gems/oauth-1.1.2/lib/oauth/request_proxy/action_controller_request.rb:28:in 'OAuth::RequestProxy::ActionControllerRequest#parameters'
     # /gems/ruby-3.4.6/gems/oauth-1.1.2/lib/oauth/request_proxy/base.rb:43:in 'OAuth::RequestProxy::Base#oauth_signature_method'
     # /gems/ruby-3.4.6/gems/oauth-1.1.2/lib/oauth/signature.rb:16:in 'OAuth::Signature.build'

It seems like that method is also not covered by specs, hence suggesting that it is indeed an issue with the oauth gem.

Reproduction Steps:

In a Rails app, execute the following:

request = ActionController::TestRequest.create(ApplicationController)
OAuth::Signature.build(request)

Result:

'<main>': undefined method 'wrap_values' for an instance of OAuth::RequestProxy::ActionControllerRequest (NoMethodError)

          rq = wrap_values(request_params)
               ^^^^^^^^^^^

Environment:

ruby 3.4.6 (2025-09-16 revision dbd83256b1) +YJIT +PRISM [arm64-darwin25]
oauth 1.1.2

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions