From 1bc7c48876f6ec202179d7598ec2ce67a18b9b50 Mon Sep 17 00:00:00 2001 From: xiaoxiaoqiong Date: Tue, 5 Jul 2022 16:30:11 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20oauth2=20code=E6=8E=88=E6=9D=83?= =?UTF-8?q?=E6=96=B9=E5=BC=8F=E7=99=BB=E5=BD=95default=5Fscopes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/initializers/doorkeeper.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/initializers/doorkeeper.rb b/config/initializers/doorkeeper.rb index 54213f4f0..debc344ac 100644 --- a/config/initializers/doorkeeper.rb +++ b/config/initializers/doorkeeper.rb @@ -242,8 +242,8 @@ Doorkeeper.configure do # For more information go to # https://doorkeeper.gitbook.io/guides/ruby-on-rails/scopes # - # default_scopes :public - # optional_scopes :write, :update + default_scopes :public + optional_scopes :write, :update # Allows to restrict only certain scopes for grant_type. # By default, all the scopes will be available for all the grant types.