I have a fresh Liferay 7.2 and Keycloak 7 install I created a Keycloak Client for Liferay I enable Openid Connect in Liferay In Liferay I configure an OpenID Connect provider with the Keycloak OpenID Connect discovery endpoint
In Liferay I click Login, Login is presented I click OpenID Connect, OpenID Connect Login page is presented I click Login with the Keycloak provider selected, the browser is redirected to the Keycloak log in page I enter my user and password and Click log in My browser is redirected back to Liferay In the Liferay the console looks like this https://gist.github.com/smitopher/ca8bcb2ccb564eff3a42a1944e8daed7
and the browser shows a Liferay Internal Server Error message
Any suggestions?
Some further debugging shows that When Liferay calls the Keycloak token endpoint, Keycloak returns a 400 http status and an invalid grant message.
Unable to validate tokens
-> Is Liferay able to reach Keycloak OpenID Connect discovery endpoint? – Jan Garaj