Introduce privileged scopes that only an administrator can enable
This commit is contained in:
parent
6a9ab7cb2d
commit
6c6e8883f7
7 changed files with 38 additions and 20 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue