Open Joeydelarago opened 2 months ago
@Joeydelarago We don't have transient users integrated with authorization services yet. We should work on this before making the feature supported.
Due to the amount of issues reported by the community we are not able to prioritise resolving this issue at the moment.
If you are affected by this issue, upvote it by adding a :thumbsup: to the description. We would also welcome a contribution to fix the issue.
Before reporting an issue
Area
authorization-services
Describe the bug
I have a Keycloak realm with an OICD client that issues a token without roles included. I have another OIDC client which is a confidential client that does authorisation. I use "Fetch Roles" in the policy to get the roles instead of using the roles in the token. Authorisation works fine with a user from this realm.
I add an identity provider with transient users enabled (Do not store users). I hardcode roles on all users from this identity provider. Now the roles of the users from this identity provider and my realm match, and I expect that authorization will be the same for both. However the transient user always fails to authorise.
I thought that Fetch roles would resolve the roles from the user sessions, but maybe I am mistaken?
Version
25.0.4
Regression
Expected behavior
Fetch roles for policies fetches roles for transient users from the session and authorisation is successful
Actual behavior
Authorisation always fails with a transient user
How to Reproduce?
Anything else?
No response