-
Notifications
You must be signed in to change notification settings - Fork 315
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
Add datasource keycloak_client_description_converter #518
Conversation
ping @mrparkers for review please 😃 |
Could you help me understand what the Thanks! |
@mrparkers Yes of course ! This endpoint is used to transform any saml metadata or oidc json into the internal representation for keycloak (it is used for example in the administration panel of keycloak when you import a client from a url). I use the result of this endpoint to create different resource on keycloak (saml client, idp etc) I have (personally) 2 use cases to use this endpoint :
Here is an example code (using provider http also but it works with the file provider)
I found this endpoint very useful to "synchronise" multiple federation endpoint with the config I have on my keycloak. (before that I had a script which parse urls and extract certificates and others options). Let me know if you need more information 😃 Thanks by advance |
Signed-off-by: Olivier LANIESSE <o.laniesse@gmail.com>
I see, so the I don't have something like |
@mrparkers yes you got it. It doesn't change anything on the keycloak side, this is just an endpoint used for data transformation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for helping me understand this, everything looks good! I'll do a follow-up here to get some docs added so this can be included in the next release.
This PR implements the client_description_converter endpoint as a datasource (documentation of this endpoint can be found here : https://www.keycloak.org/docs-api/5.0/rest-api/index.html#_paths).
I had to add a method in keycloak_client to be able to send xml data without escaping.
Please let me know if this suit you 😃
Thanks by advance !