-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Username prefix only available for fallback #228
Comments
The original use case for adding the fallback prefix configuration was the difference in JWT token claims in tokens obtained from some authorization servers when authenticating with client_credentials vs. refresh_token or password. I never thought of your use case. It sounds legitimate. The workaround is exactly like you described. |
I noticed you've added I noticed that if |
Yes. This issue has been addressed by #230. Can you be more specific about the exact configuration you have? |
I have the following configuration in Strimzi:
I assume this corresponds to:
I would have thought that based on documentation if Well unless my tokens don't even have the |
Nope - |
This is the algorithm which the code should agree with:
The addition of To comment on your example configuration specifically ... You setting the
If you want to use
Alternatively, we could think here about changing In the future the new option will be integrated into Strimzi Operator as |
ok, thanks! I only want to use the fallback for now and until the Strimzi Operator supports the I wasn't sure whether setting |
This might be the reason? I'm trying to validate now. Before this was introduced I would set |
Ok it seems setting |
Is there any reason that the username claim prefix (
oauth.fallback.username.prefix
) is only configurable for the fallback username (oauth.fallback.username.claim
) and not the primary one (oauth.username.claim
)?The question is mainly focused around Strimzi Brokers but I thought it would be more relevant to ask here. We basically want to use different OAuth ingress listeners that connect to different OAuth servers. Using a different prefix on each OAuth listener would allow to set up authorisation more easily.
I guess it is still technically possible by setting
oauth.username.claim
to something that might never be there.The text was updated successfully, but these errors were encountered: