Skip to content

Commit

Permalink
Merge pull request #425 from ImMin5/master
Browse files Browse the repository at this point in the history
fix update expired_at on token regeneration
  • Loading branch information
ImMin5 authored Jan 3, 2025
2 parents 9bf3bc3 + 1c2983c commit a389f93
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/spaceone/identity/service/app_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,9 @@ def generate_client_secret(
)

# Update app info
app_vo = self.app_mgr.update_app_by_vo({"client_id": client_id}, app_vo)
app_vo = self.app_mgr.update_app_by_vo(
{"client_id": client_id, "expired_at": params.expired_at}, app_vo
)

return AppResponse(**app_vo.to_dict(), client_secret=client_secret)

Expand Down

0 comments on commit a389f93

Please sign in to comment.