Class: Doorkeeper::DeviceAuthorizationGrant::DeviceCodesController

Inherits:
ApplicationMetalController
  • Object
show all
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

#createObject



9
10
11
12
13
14
# File 'app/controllers/doorkeeper/device_authorization_grant/device_codes_controller.rb', line 9

def create
  headers.merge!(authorize_response.headers)
  render(json: authorize_response.body, status: authorize_response.status)
rescue Doorkeeper::Errors::DoorkeeperError => e
  handle_token_exception(e)
end