I have enabled Administrative Security to login into Websphere Application Admin Console. Installed and Deployed .war application successfully which has security constraint. Below is the snippet,
<security-constraint>
<web-resource-collection>
<web-resource-name>BBB</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
</security-constraint>
<security-constraint>
<web-resource-collection>
<web-resource-name>BBB</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>User</role-name>
</auth-constraint>
</security-constraint>
<security-role>
<role-name>Admin</role-name>
</security-role>
<login-config>
<auth-method>BASIC</auth-method>
<realm-name>AAARealm</realm-name>
</login-config>
I have opened my chrome browser and logged into WAS Admin Console and but when I access my deployed web application it is throwing Error 403 Unauthorized Error.
------------------------------
Vikas M
------------------------------