Class: StandardId::Api::Oauth::TokensController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- BaseController
- StandardId::Api::Oauth::TokensController
- Defined in:
- app/controllers/standard_id/api/oauth/tokens_controller.rb
Constant Summary collapse
- FLOW_STRATEGIES =
{ "client_credentials" => StandardId::Oauth::ClientCredentialsFlow, "authorization_code" => StandardId::Oauth::AuthorizationCodeFlow, "password" => StandardId::Oauth::PasswordFlow, "refresh_token" => StandardId::Oauth::RefreshTokenFlow, "passwordless_otp" => StandardId::Oauth::PasswordlessOtpFlow }.freeze
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
13 14 15 16 |
# File 'app/controllers/standard_id/api/oauth/tokens_controller.rb', line 13 def create response_data = flow_strategy_class.new(flow_strategy_params, request).execute render json: response_data, status: :ok end |