OpenAM .Net Agent
1.0.131
透過尋找 $ {site} /web.config 檔案來識別應用程式檔案所在的 ${site}資料夾
策略代理設定位於${site}/web.config檔中。將以下設定新增至<appSettings>部分:
< add key = " com.sun.identity.agents.config.naming.url " value = " " />
< add key = " com.sun.identity.agents.config.organization.name " value = " / " />
< add key = " com.sun.identity.agents.app.username " value = " " />
< add key = " com.iplanet.am.service.password " value = " " />
< add key = " com.sun.identity.agents.config.key " value = " " /> <!-- skip this setting, if password is not encrypted) -->
< add key = " com.sun.identity.agents.config.local.log.path " value = " ${basedir}/App_Data/Logs " /> <!-- override log files path -->
設定值由 OpenAM 伺服器管理員提供,或可在先前安裝的c:iis7_agentIdentifier_${site_id}configOpenSSOAgentBootstrap.properties檔案中找到。
可以在${site}/web.config檔中的<httpModules>部分啟用策略代理:
< add name = " iis7agent " />
< add name = " OpenAM " type = " ru.org.openam.iis.OpenAMHttpModule " />
重要提示:新部分必須是<httpModules>標記之後或<httpModules>內的<clear/>標記之後的第一個條目(如果存在)
可以在${site}/web.config檔的<httpModules>部分停用策略代理:
刪除條目:
< add name = " OpenAM " type = " ru.org.openam.iis.OpenAMHttpModule " />
設定範例${site}/web.config :https://github.com/OpenIdentityPlatform/OpenAM-.Net-Agent/blob/master/ru.org.openam.iis.site.sample/web.config
伺服器使用不受信任的憑證。將伺服器憑證新增至受信任清單或停用嚴格的憑證檢查(不建議在生產中使用):
< add key = " com.sun.identity.agents.config.trust.server.certs " value = " true " />
網路設備無法正確處理維護keepalive網路連接,嘗試禁止keepalive連接:
< add key = " org.openidentityplatform.agents.config.keepalive.disable " value = " true " />