I’m using Keycloak to secure a java-app (Vaadin), so i’m using a java-adapter. Securing my application by adding my secured path in the web.xml.
When I run my app locally on localhost, it all works perfect. I get redirected to our test-keycloak-server and I can login and everything. But once deployed on our test-server (tomcat) I get this strange behavior.
Maybe one thing to note: our testserver doesn’t use https, could this explain anything?
Also, the ‘Valid Redirect URIs’ you need to set in Keycloak are set correctly.
The first problem I had was that instead of removing the port Keycloak removed it and added ‘0’, giving me this url:
testserver:0/application
I solved this by adding ‘confidential-port: 443’ to my keycloak.json, and so now it completely strips away the port-number…