python-keycloak
python-keycloak copied to clipboard
get_authentication_flows() gives 403: b'{"error":"unknown_error"}'
When trying to access authentication flows from keycloak, its giving me 403 error. Although create_user() and get_users() are working fine, so I believe there is not problem with the connection. Here are the logs:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/keycloak/keycloak_admin.py", line 1000, in get_authentication_flows return raise_error_from_response(data_raw, KeycloakGetError) File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/keycloak/exceptions.py", line 102, in raise_error_from_response response_body=response.content) keycloak.exceptions.KeycloakGetError: 403: b'{"error":"unknown_error"}'
same problem here. for me get_users() does not work. only print(keycloak_admin.client_id) prints the correct id
@sureshimp766 what is the error you get ? I think the settings in ur keycloak realm is not correct. You need to provide Full Scope to the client and also add "manage users" in realm managment.