IBM WebSphere Application Server (V9) 如何处理 HTTP Basic Authentication 中的领域
How the Realm in the HTTP Basic Authentication is treated by IBM WebSphere Application Server (V9)
我想知道我是否应该为 web.xml 中的领域设置与服务器 (WAS V9) 上联合存储库的值相同的值。
我的配置如下
服务器配置
通过在 WAS 管理控制台上的 "User account repository" 下配置 "Federated repositories" 来设置基于文件的用户领域。
此存储库的领域是 "defaultWIMFileBasedRealm"。(这是默认值)
应用配置
web.xml如下
...
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>hogehoge</realm-name>
</login-config>
...
web.xml 的领域值与服务器上存储库的值不匹配。
但是基本身份验证运行良好,没有任何问题。
所以我的问题是
是否不需要为两个领域设置相同的值?
web.xml中的realm在WAS服务器中如何使用?
WAS 中的领域与web.xml 中的领域无关。所以回答你的问题:
- Is there no need to set same value for both realm?
不,它们可以完全不同。
- How the realm in the web.xml is used in the WAS server?
web.xml中的领域用于基本身份验证的弹出对话框。所以你会在浏览器中看到它。它的唯一目的是帮助用户决定他应该输入什么 username/password :-)
WebSphere 中的领域在内部用于 SSO,在 LTPA 令牌中,对应用程序最终用户没有实际意义。
我想知道我是否应该为 web.xml 中的领域设置与服务器 (WAS V9) 上联合存储库的值相同的值。
我的配置如下
服务器配置
通过在 WAS 管理控制台上的 "User account repository" 下配置 "Federated repositories" 来设置基于文件的用户领域。 此存储库的领域是 "defaultWIMFileBasedRealm"。(这是默认值)
应用配置
web.xml如下
...
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>hogehoge</realm-name>
</login-config>
...
web.xml 的领域值与服务器上存储库的值不匹配。 但是基本身份验证运行良好,没有任何问题。
所以我的问题是
是否不需要为两个领域设置相同的值?
web.xml中的realm在WAS服务器中如何使用?
WAS 中的领域与web.xml 中的领域无关。所以回答你的问题:
- Is there no need to set same value for both realm?
不,它们可以完全不同。
- How the realm in the web.xml is used in the WAS server?
web.xml中的领域用于基本身份验证的弹出对话框。所以你会在浏览器中看到它。它的唯一目的是帮助用户决定他应该输入什么 username/password :-)
WebSphere 中的领域在内部用于 SSO,在 LTPA 令牌中,对应用程序最终用户没有实际意义。