[keycloak-user] Wildfly Container Managed Security Constraint Redirect localhost

Ryan Slominski ryans at jlab.org
Wed Aug 8 16:34:43 EDT 2018


Hi Keycloak Users,
   I'm attempting to setup a Wildfly application as a client to Keycloak and an issue I'm seeing is that if I navigate my web browser to a protected resource I am redirected to Keycloak as expected, but the return URL (redirect_uri parameter) is to localhost, not back to my actual hostname, say "myserver.example.com".  This breaks the process with the Keycloak error "Invalid parameter: redirect_uri".  How do I configure the Wildfly client adapter to generate a redirect_uri to my actual hostname instead of to localhost?  When I browse my Wildfly application on unprotected pages I'm using the actual hostname already.  In Wildfly standalone.xml I've set inet-address for public to 0.0.0.0 to replace 127.0.0.1.  I've also updated the host element default-host alias to match myserver.example.com to replace "localhost".  Neither of those changes made a difference.

Thanks,

Ryan


More information about the keycloak-user mailing list