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

get_authentication_flows() gives 403: b'{"error":"unknown_error"}'

Open raj-sethi05 opened this issue 5 years ago • 2 comments

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"}'

raj-sethi05 avatar May 19 '20 08:05 raj-sethi05

same problem here. for me get_users() does not work. only print(keycloak_admin.client_id) prints the correct id

sureshimp766 avatar May 22 '20 15:05 sureshimp766

@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.

raj-sethi05 avatar May 22 '20 15:05 raj-sethi05