python-keycloak icon indicating copy to clipboard operation
python-keycloak copied to clipboard

Please implement create_authenticator_config

Open jsalatiel opened this issue 3 years ago • 4 comments

Hi, would it be possible implement get_authenticator_config. For now I can create a Conditional OTP , but I can not configure it.

jsalatiel avatar Mar 22 '21 22:03 jsalatiel

Did you mean adding POST for the endpoint /{realm}/authentication/config/{id}? I believe the GET/PUT is already available via keycloak_admin.get_authenticator_config() and update_authenticator_config()

double-a avatar Apr 05 '21 11:04 double-a

Hi everyone!

I jump on this old issue to express the same need for a create_authenticator_config function. This would be very useful.

Yayg avatar May 12 '23 15:05 Yayg

Hi everyone!

I jump on this old issue to express the same need for a create_authenticator_config function. This would be very useful.

So I get into the code and tried to add it myself but actually there is no implementation for a "create" route here in the API (https://www.keycloak.org/docs-api/18.0/rest-api/) Something that bugs me is that an authenticatorConfig parameter is in the RealmRepresentation and in "Update execution with new configuration" so I bet you need to update the Execution Flow config with a config embeded.

Yayg avatar May 12 '23 16:05 Yayg

For those still waiting for endpoints to be implemented, have a look at mantelo instead. It offers a pythonic way of accessing Keycloak Admin endpoints, and thus supports all the endpoints your keycloak supports.

derlin avatar Mar 24 '24 15:03 derlin