Keycloak设置http代理proxy
来自三线的随记
为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests)
Official document
https://www.keycloak.org/docs/latest/server_installation/#_proxymappings
Related configuration file path
/opt/jboss/keycloak/standalone/configuration/****
eg: /opt/jboss/keycloak/standalone/configuration/standalone-ha.xml
<spi name="connectionsHttpClient"> <provider name="default" enabled="true"> <properties> <property name="proxy-mappings" value="[".*\\.(microsoft|microsoftonline)\\.com;http://aswproxyhk.aswatson.net:8080"]"/> </properties> </provider> </spi>
ps
需要注意的是 " 是 " 的实体字符
Note that one needs to encode"
characters with"
.