From 43c1a4395f2420664d8ced8e775342771951e6bf Mon Sep 17 00:00:00 2001 From: Dante Soares Date: Mon, 21 Oct 2024 11:24:37 -0500 Subject: [PATCH] Fix Doorkeeper scopes for user APIs --- app/controllers/api/v1/users_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/api/v1/users_controller.rb b/app/controllers/api/v1/users_controller.rb index 174c289f8..647eec153 100644 --- a/app/controllers/api/v1/users_controller.rb +++ b/app/controllers/api/v1/users_controller.rb @@ -264,7 +264,7 @@ def get_sso_token(application, user) access_token = Doorkeeper::AccessToken.find_or_create_for( application: application, resource_owner: user.id, - scopes: '', + scopes: 'all', expires_in: SSO_TOKEN_INITIAL_DURATION, use_refresh_token: false, ) @@ -278,7 +278,7 @@ def get_sso_token(application, user) access_token = Doorkeeper::AccessToken.create_for( application: application.id, resource_owner: user.id, - scopes: '', + scopes: 'all', expires_in: SSO_TOKEN_INITIAL_DURATION, use_refresh_token: false )