Invalid token issuer when running keycloak behind proxy

后端 未结 2 1349
情深已故
情深已故 2020-12-31 14:00

I\'ve placed my keycloak server behind apache proxy:

ProxyRequests On
ProxyVia On
ProxyPreserveHost On
SSLProxyEngine On
SSLProxyCheckPeerCN on
SSLProxyCheck         


        
2条回答
  •  佛祖请我去吃肉
    2020-12-31 14:29

    This has been a common problem as Keycloak verifies the issuer of the placed token with the issuer that generated token. And in your case, the token was generated by http://keycloak:8090/auth/realms/local but in the given token issuer is your proxy server FQDN i.e. http://localhost/auth/realms/local

提交回复
热议问题