Class: StandardId::Api::UserinfoController
- Inherits:
-
BaseController
- Object
- ActionController::API
- BaseController
- StandardId::Api::UserinfoController
- Defined in:
- app/controllers/standard_id/api/userinfo_controller.rb
Constant Summary
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
8 9 10 11 12 13 14 |
# File 'app/controllers/standard_id/api/userinfo_controller.rb', line 8 def show verify_access_token! account = current_account raise StandardId::NotAuthenticatedError unless account render json: build_userinfo_response(account), status: :ok end |