Class: Doorkeeper::DeviceAuthorizationGrant::DeviceCodesController
- Inherits:
-
ApplicationMetalController
- Object
- ApplicationMetalController
- Doorkeeper::DeviceAuthorizationGrant::DeviceCodesController
- Defined in:
- app/controllers/doorkeeper/device_authorization_grant/device_codes_controller.rb
Overview
Device authorization endpoint for OAuth 2.0 Device Authorization Grant.
Instance Method Summary collapse
Instance Method Details
#create ⇒ Object
9 10 11 12 13 14 |
# File 'app/controllers/doorkeeper/device_authorization_grant/device_codes_controller.rb', line 9 def create headers.merge!(.headers) render(json: .body, status: .status) rescue Doorkeeper::Errors::DoorkeeperError => e handle_token_exception(e) end |