Sha256: eca583e388caf3b6c5fc9e7909a3cf219155b9e65701e73aaacc8a078d51f9d3

Contents?: true

Size: 1.11 KB

Versions: 11

Compression:

Stored size: 1.11 KB

Contents

Opro.setup do |config|
  ## Configure the auth_strategy or use set :login_method, :logout_method, & :authenticate_user_method
  config.auth_strategy = :devise

  ## Add or remove application permissions
  # Read permission (any request with [GET]) is turned on by default
  # Write permission (any request other than [GET]) is requestable by default
  # Custom permissions can be configured by adding them to `config.request_permissions`
  # You can then require that permission on individual actions by calling
  # `require_oauth_permissions` in the controller
  config.request_permissions = [:write]

  ## Refresh Token config
  # uncomment `config.require_refresh_within` to require refresh tokens
  # this will expire tokens within the given time duration
  # config.require_refresh_within = 1.month

  ## Allow Password Exchange
  # You can allow client applications to exchange a user's credentials
  # password, etc. for an access token.
  # Caution: This bypasses the traditional OAuth flow
  # as a result users cannot opt out of client permissions, all permissions are granted
  config.password_exchange_enabled = true
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
opro-0.5.0 test/dummy/config/initializers/opro.rb
opro-0.4.3 test/dummy/config/initializers/opro.rb
opro-0.4.2 test/dummy/config/initializers/opro.rb
opro-0.4.1 test/dummy/config/initializers/opro.rb
opro-0.4.0 test/dummy/config/initializers/opro.rb
opro-0.3.3 test/dummy/config/initializers/opro.rb
opro-0.3.2 test/dummy/config/initializers/opro.rb
opro-0.3.1 test/dummy/config/initializers/opro.rb
opro-0.3.0 test/dummy/config/initializers/opro.rb
opro-0.3.0.pre3 test/dummy/config/initializers/opro.rb
opro-0.3.0.pre2 test/dummy/config/initializers/opro.rb