-
Notifications
You must be signed in to change notification settings - Fork 151
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
Configure authenticationFlowBindingOverrides for a client #170
Comments
I had a look into the code and maybe a similar process to the client's Exclude What do you think? I am happy to give this a shot and make a PR to fix this if that approach looks ok to you. |
Hi! Thanks for the report. Funny that there will be always someone that using a keycloak feature that I didn't know before. First, I check if there is a undocument way that Keycloak supports. But looking here, only a flow id is supported. https://github.com/keycloak/keycloak/blob/f486e97c182425bf7a2178f2d93bc4b308ca3bd6/server-spi-private/src/main/java/org/keycloak/models/utils/RepresentationToModel.java#L1357-L1373
That might be the way to go, I would do this, too. Including some tests and documentation somewhere here.
Sure. Some tips from my side: Currently clients are configured before flows, because some flows settings depends agist clients. As you mention Some additional scenarios should cover by tests. Like what happens if the flow referenced inside client gets deleted? Since keycloak-config-cli re-creates flow on changes (+ the flow gets a new id) it needs to be verify what happens, e.g will the new flow id updated inside the client? What happens if the alias or the flow id would not found? |
Was the close a miss click or du you not interested in a PR anymore? |
ah sorry, a miss click probably :) |
Thanks for your helpful comment, we will look into it on our side. I will likely not be the one who do the PR though. |
All right! Since i'm a system operator, java isn't on my skill list, too. ;-) |
Hi there, I'll try to implement it ;-P. Explanation :
Do you thing there is another thing to test ? |
Looks great! Just one more: While authenticationFlowBindingOverrides is set, change something on an auth flow that triggers a re-create. The id inside authenticationFlowBindingOverrides should be updated to the new flowId. Additionally. the code coverage will show us some untested codepath. Within this metric we should able to see if we miss something. |
If you need help somewhere, just drop a WIP PR here. |
Describe the bug
It seems not possible to configure
authenticationFlowBindingOverrides
for a client.Keycloak uses authentication flow ID in their client configuration instead of alias.
To Reproduce
I tried to force the authentication flow id and use this id in the client
authenticationFlowBindingOverrides
configuration but it does not seems to work at least if the auth flow already exists.Expected behavior
The configuration should probably use authentication flow
aliases
and resolve them to ids before making the calls to Keycloak.Environment (please complete the following information)
The text was updated successfully, but these errors were encountered: