Class: StandardId::Api::AuthorizationController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- StandardId::Api::AuthorizationController
- Includes:
- ActionController::Cookies
- Defined in:
- app/controllers/standard_id/api/authorization_controller.rb
Constant Summary collapse
- FLOW_STRATEGIES =
{ "code" => StandardId::Oauth::AuthorizationCodeAuthorizationFlow, "token" => StandardId::Oauth::ImplicitAuthorizationFlow, "token id_token" => StandardId::Oauth::ImplicitAuthorizationFlow }.freeze
Constants included from RateLimitHandling
RateLimitHandling::RATE_LIMIT_STORE
Instance Method Summary collapse
Methods included from ControllerPolicy
all_controllers, authenticated_controllers, public_controllers, register, registry_snapshot, reset_registry!
Instance Method Details
#show ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'app/controllers/standard_id/api/authorization_controller.rb', line 18 def show response_data = flow_strategy_class.new(flow_strategy_params, request, current_account: current_account).execute if response_data[:redirect_to] redirect_to response_data[:redirect_to], status: response_data[:status] || :found, allow_other_host: true else render json: response_data, status: :ok end end |