r/openstack • u/MelletjeN • Nov 17 '25
Problem authenticatiing using Keycloak
Hi,
I've tried implementing authentication for Keystone using Keycloak following this tutorial. Everything seems to have registered correctly, as I can see the correct resources in OpenStack and can see Authenticate using (keycloak name) in the Horizon log-in page. However, Horizon is not redirecting me to Keycloak and instead directly throwing a 401 error from Keystone, which also appears in the logs without any further information:
2025-11-17 16:17:52.619 26 WARNING keystone.server.flask.application [None (...)] Authorization failed. The request you have made requires authentication. from ***.***.***.***: keystone.exception.Unauthorized: The request you have made requires authentication.Has anyone else faced this issue or know why this happens? Thanks in advance!
P.S. if you need any other details please let ke know.
View all comments
Show parent comment
2
u/MelletjeN Nov 18 '25
Update 2: The 400 error was caused by me using self-signed certificates for Keycloak in my testing environment which the Keystone docker container didn't trust. After adding the root CA to the docker container, it works!