diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:49:13 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-14 17:49:13 +0100 |
commit | 6fec8afc3f91166930c8b4dfca441a5a70a24d5b (patch) | |
tree | 4cd02810b87de1dccf7b96630910921d76357921 /config | |
parent | 25d7c1b6eaf03ddaec892c82f7d93a128b79a872 (diff) |
Bind oauth applications to users
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/doorkeeper.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 69a730cac..f84f12378 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -45,7 +45,7 @@ Doorkeeper.configure do # Optional parameter :confirmation => true (default false) if you want to enforce ownership of # a registered application # Note: you must also run the rails g doorkeeper:application_owner generator to provide the necessary support - # enable_application_owner :confirmation => false + enable_application_owner :confirmation => true # Define access token scopes for your provider # For more information go to diff --git a/config/routes.rb b/config/routes.rb index 7f8a66814..3dd6e3469 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,7 @@ Rails.application.routes.draw do - use_doorkeeper + use_doorkeeper do + controllers applications: 'oauth/applications' + end get '.well-known/host-meta', to: 'xrd#host_meta', as: :host_meta get '.well-known/webfinger', to: 'xrd#webfinger', as: :webfinger |