Skip to content

Commit

Permalink
More user API token creation fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Dantemss committed Oct 23, 2024
1 parent 8e6f007 commit bf6a783
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/controllers/api/v1/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ def create_external_id
def get_sso_token(application, user)
access_token = Doorkeeper::AccessToken.find_or_create_for(
application: application,
resource_owner: user.id,
resource_owner: user,
scopes: Doorkeeper.config.default_scopes,
expires_in: SSO_TOKEN_INITIAL_DURATION,
use_refresh_token: false,
Expand All @@ -276,8 +276,8 @@ def get_sso_token(application, user)
)

access_token = Doorkeeper::AccessToken.create_for(
application: application.id,
resource_owner: user.id,
application: application,
resource_owner: user,
scopes: Doorkeeper.config.default_scopes,
expires_in: SSO_TOKEN_INITIAL_DURATION,
use_refresh_token: false
Expand Down

0 comments on commit bf6a783

Please sign in to comment.