Skip to content

Commit

Permalink
Fix Doorkeeper scopes for user APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
Dantemss committed Oct 21, 2024
1 parent bea8b11 commit 43c1a43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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
)
Expand Down

0 comments on commit 43c1a43

Please sign in to comment.