-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Closed
Copy link
Labels
kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/importantMust be worked on very soonMust be worked on very soonrelease/26.2.11release/26.4.4release/26.5.0team/core-clients
Description
Before reporting an issue
- I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.
Area
oidc
Describe the bug
An offline session continues to be valid when the offline_access scope is removed from the client. The idea is that the refresh operation should return an error if the scope is not assigned to the client anymore. This can confuse administrators, that think removing the scope is enough and they do not remove the sessions associated. Better if we avod this and return an error, saying invalid scope or similar.
Version
26.4.2
Regression
- The issue is a regression
Expected behavior
The refresh token fails because of the scope issue.
Actual behavior
The refresh token is valid and a new token is obtained.
How to Reproduce?
- Initiate an offline session with a code to token login using a client.
- In the related client remove the
offline_accessscope. - Refresh to token to obtain a new access token.
Anything else?
No response
Metadata
Metadata
Assignees
Labels
kind/bugCategorizes a PR related to a bugCategorizes a PR related to a bugpriority/importantMust be worked on very soonMust be worked on very soonrelease/26.2.11release/26.4.4release/26.5.0team/core-clients