NoMethodError: undefined method `name_for_response' since v5.6.8
Closed this issue · 3 comments
nov commented
this line start causing an error
NoMethodError: undefined method `name_for_response' for :invalid_request:Symbol
nbulaj commented
Thanks for reporting! @camero2734 I think we have one more issue here 😞
camero2734 commented
Hmmm, I don't immediately see where this happens, could you provide an example request that causes this error?
nov commented
ah, I had an custom error handling code like below.
module Doorkeeper::OAuth::PkceRequirement
extend ActiveSupport::Concern
included do
validate :pkce_requirement, error: :invalid_request
end
:
and
redirect_to oauth_error_response(:tenant_member_restricted).redirect_uri, allow_other_host: true
now it's replaced from Symbol to doorkeeper error classes, so everything is working fine.