0
我是新來的基本身份驗證。我創建了一個沒有資源的虛擬Web應用程序。下面是安全約束我在網上的xml文件中添加瀏覽器不彈出基本身份驗證的登錄提示
<security-constraint>
<web-resource-collection>
<web-resource-name>contextRoot</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>AuthorizedUser</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>NONE</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>defaultWIMFileBasedRealm</realm-name>
</login-config>
我部署我的應用程序在WebSphere 8.5,並試圖打一些隨機資源本應用來檢查瀏覽器挑戰我進行身份驗證。我沒有看到一個。
謝謝你,我啓用了WebSphere Application安全性,使用戶的作用和它的工作 –
我很高興它爲你工作。如果答案解決了您的問題,請將其標記爲已接受。 –