wildfly integration with keycloak 403 forbidden error

后端 未结 3 765
滥情空心
滥情空心 2021-01-06 13:23

I have an application integrated with keycloak. THe application runs on wildfly server. I use web.xml to authenticate keycloak(as Login config). Apart from that i use keyclo

3条回答
  •  抹茶落季
    2021-01-06 14:07

    If its the case that login is failing after SSL was enabled it would be because SSL certificate was not in the truststore and you might this exception javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated

    For this you can disable-trust-manager , by adding the following conf in keycloak.json

      {
        ...
        "disable-trust-manager": true
      }
    

    If this solves the issue then the proper way of doing it will be to add the certificate to the trust store and specifying it in keycloak.json file like so.

     {
        ...
        "truststore": "cacerts.jks",
        "truststore-password" : "password"
      }
    

提交回复
热议问题