Hi,
I have a primefaces application running on a Wildfly 26.1.3 server and I’m trying to secure it with Keycloak 21.0.1. I have successfully done it in development mode, however I cannot get it working in production mode. When I am opening the application link I am getting 403 forbidden instead of the login page.
So far, I have narrowed it down to the point that I have a trust store problem. At least it looks so.
If i put into the oidc.json
"disable-trust-manager": true
I get the login page, this is why I’m quite sure that it has to do with the trust manager
The client definition:
The oidc.json file that is placed in the WEB-INF folder:
{
"realm": "concludit",
"auth-server-url": "https://localhost:8543/auth/",
"ssl-required": "external",
"resource": "mis-client",
"truststore": "application.keystore",
"truststore-password" : "password",
"public-client": true,
"confidential-port": 0
}
The application.keystore file I have palced in configuration folder of the Wildfly server, and in it is the certificaton extracted from the server.keystore file that is in the keyloack conf folder.
The only thing what I get in the wildfly server.log is the following line:
18:00:25,924 WARN [org.wildfly.security.http.oidc] (default task-1) ELY23005: Unable to load OpenID provider metadata from https://localhost:8543/auth/realms/concludit/.well-known/openid-configuration
Hope, someone can help me out.
Regards
Andrija
