python-keycloak
python-keycloak copied to clipboard
Q: Possibility to change the realm of an KeycloakOpenID and KeycloakAdmin object
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.)
Currently the API does not support this. You would need to get a new token anyway thus the overhead is probably neglectable.
Now there are helper methods called get_current_realm and change_current_realm in the admin client to identify and change realms.