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

Q: Possibility to change the realm of an KeycloakOpenID and KeycloakAdmin object

Open domsie opened this issue 4 years ago • 1 comments
trafficstars

Hi, is it possible to change the realm of an KeycloakOpenID and KeycloakAdmin object without creating a new object? (using the same server_url etc.)

domsie avatar Feb 24 '21 13:02 domsie

Currently the API does not support this. You would need to get a new token anyway thus the overhead is probably neglectable.

double-a avatar Apr 06 '21 16:04 double-a

Now there are helper methods called get_current_realm and change_current_realm in the admin client to identify and change realms.

ryshoooo avatar Nov 13 '23 14:11 ryshoooo