Fix test for the auth missing the response_type parameter
This commit is contained in:
parent
adcf2ab7ab
commit
e4edad0646
1 changed files with 2 additions and 1 deletions
|
|
@ -3,7 +3,8 @@ module Api
|
||||||
class AuthorizationsController < ApplicationController
|
class AuthorizationsController < ApplicationController
|
||||||
rescue_from Rack::OAuth2::Server::Authorize::BadRequest do |e|
|
rescue_from Rack::OAuth2::Server::Authorize::BadRequest do |e|
|
||||||
logger.info e.backtrace[0, 10].join("\n")
|
logger.info e.backtrace[0, 10].join("\n")
|
||||||
render json: {error: e.message || :error, status: e.status}
|
error, description = e.message.split(" :: ")
|
||||||
|
handle_prompt_params_error(error, description)
|
||||||
end
|
end
|
||||||
|
|
||||||
before_action :auth_user_unless_prompt_none!
|
before_action :auth_user_unless_prompt_none!
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue