]> git.openstreetmap.org Git - rails.git/blobdiff - config/initializers/doorkeeper.rb
Introduce privileged scopes that only an administrator can enable
[rails.git] / config / initializers / doorkeeper.rb
index 549138b3377cee55a7f71dc6bce30a9af451ce17..32156b8217e723f63dcdc439d229d33cef5f8c72 100644 (file)
@@ -48,6 +48,8 @@ Doorkeeper.configure do
   #   end
   # end
 
+  application_class "Oauth2Application"
+
   # Enables polymorphic Resource Owner association for Access Tokens and Access Grants.
   # By default this option is disabled.
   #
@@ -221,7 +223,7 @@ Doorkeeper.configure do
   # https://doorkeeper.gitbook.io/guides/ruby-on-rails/scopes
 
   # default_scopes  :public
-  optional_scopes(*Oauth::SCOPES)
+  optional_scopes(*Oauth::SCOPES, *Oauth::PRIVILEGED_SCOPES)
 
   # Allows to restrict only certain scopes for grant_type.
   # By default, all the scopes will be available for all the grant types.