Module: Doorkeeper::DeviceAuthorizationGrant
- Defined in:
- lib/doorkeeper/device_authorization_grant.rb,
lib/doorkeeper/device_authorization_grant/oauth.rb,
lib/doorkeeper/device_authorization_grant/config.rb,
lib/doorkeeper/device_authorization_grant/engine.rb,
lib/doorkeeper/device_authorization_grant/errors.rb,
lib/doorkeeper/device_authorization_grant/version.rb,
lib/doorkeeper/device_authorization_grant/rails/routes.rb,
lib/doorkeeper/device_authorization_grant/orm/active_record.rb,
lib/doorkeeper/device_authorization_grant/rails/routes/mapper.rb,
lib/doorkeeper/device_authorization_grant/rails/routes/mapping.rb,
lib/doorkeeper/device_authorization_grant/oauth/helpers/user_code.rb,
lib/doorkeeper/device_authorization_grant/oauth/device_code_request.rb,
lib/doorkeeper/device_authorization_grant/request/device_authorization.rb,
lib/generators/doorkeeper/device_authorization_grant/install_generator.rb,
lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant.rb,
lib/doorkeeper/device_authorization_grant/oauth/device_authorization_request.rb,
app/controllers/doorkeeper/device_authorization_grant/device_codes_controller.rb,
lib/doorkeeper/device_authorization_grant/oauth/device_authorization_response.rb,
lib/doorkeeper/device_authorization_grant/orm/active_record/device_grant_mixin.rb,
app/controllers/doorkeeper/device_authorization_grant/device_authorizations_controller.rb
Overview
rubocop:disable Style/Documentation
Defined Under Namespace
Modules: DeviceGrantMixin, Errors, OAuth, Orm, Rails, Request Classes: Config, DeviceAuthorizationsController, DeviceCodesController, DeviceGrant, Engine, InstallGenerator, MissingConfiguration, UnsupportedConfiguration
Constant Summary collapse
- VERSION =
'1.0.3'
Class Method Summary collapse
Class Method Details
.configuration ⇒ ::Doorkeeper::DeviceAuthorizationGrant::Config
14 15 16 |
# File 'lib/doorkeeper/device_authorization_grant/config.rb', line 14 def self.configuration @config || (raise MissingConfiguration) end |
.configure(&block) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/doorkeeper/device_authorization_grant/config.rb', line 5 def self.configure(&block) if ::Doorkeeper.configuration.orm != :active_record raise UnsupportedConfiguration, 'Doorkeeper::DeviceAuthorizationGrant only supports ActiveRecord ORM' end @config = Config::Builder.new(Config.new, &block).build end |