Keycloak设置http代理proxy:修订间差异

来自三线的随记
(创建页面,内容为“== 为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests) == === Official document === https://www.keycloak.org/docs/latest…”)
 
无编辑摘要
第1行: 第1行:
== 为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests) ==
==为keycloak发起的访问请求设置http代理(Proxy settings for keycloak outgoing requests)==


=== Official document ===
===Official document===
https://www.keycloak.org/docs/latest/server_installation/#_proxymappings
https://www.keycloak.org/docs/latest/server_installation/#_proxymappings
<br />
<br />


=== Related configuration file path ===
===Related configuration file path===
/opt/jboss/keycloak/standalone/configuration/****
/opt/jboss/keycloak/standalone/configuration/****


第13行: 第13行:
     <provider name="default" enabled="true">
     <provider name="default" enabled="true">
         <properties>
         <properties>
             <property name="proxy-mappings" value="<nowiki>[&amp;quot;.*\\.(microsoft|microsoftonline)\\.com;http://aswproxyhk.aswatson.net:8080&amp;quot;]</nowiki>"/>
             <property name="proxy-mappings" value="[&amp;quot;.*\\.(microsoft|microsoftonline)\\.com;<nowiki>http://your-proxy-address.net:8080</nowiki>&amp;quot;]"/>
         </properties>
         </properties>
     </provider>
     </provider>
  </spi>
  </spi>


==== ps ====
====ps====
需要注意的是 &amp;quot; 是 " 的实体字符
需要注意的是 &amp;quot; 是 " 的实体字符
  Note that one needs to encode <code>"</code> characters with <code>&amp;quot;</code>.
  Note that one needs to encode <code>"</code> characters with <code>&amp;quot;</code>.
[[分类:Softwares]]
[[分类:Softwares]]
[[分类:Other]]
[[分类:Other]]

2020年11月2日 (一) 11:00的版本

为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="[&quot;.*\\.(microsoft|microsoftonline)\\.com;http://your-proxy-address.net:8080&quot;]"/>
        </properties>
    </provider>
</spi>

ps

需要注意的是 &quot; 是 " 的实体字符

Note that one needs to encode " characters with &quot;.