title: how can we provide access for all authenticated users(basic authentication) in websphere for any role
body: <p>For Wildfly,any authenticated user can access to any protected resource by below change in web.xml</p>
  
  <pre><code>&lt;auth-constraint&gt;
          &lt;role-name&gt;*&lt;/role-name&gt;
  &lt;/auth-constraint&gt;
  </code></pre>
  
  <p>in security-constraint and defining security role as below </p>
  
  <pre><code>&lt;security-role&gt;
      &lt;role-name&gt;*&lt;/role-name&gt;
  &lt;/security-role&gt;
  </code></pre>
  
  <p>But the same is not working for Websphere, throwing authorisation failed exception, for making it work below change is required in Websphere Adminconsole.</p>
  
  <ol>
  <li>WAS AdminConsole -> Applications > Enterprise Applications -> click .EAR</li>
  <li>click the Security role to user/group mapping</li>
  <li>Select the roles you wish to use for authentication.(in my case it is 
  *,defined in web.xml)</li>
  <li>Map special subject to "All authenticated in Application Realm" </li>
  </ol>
  
  <p>How can I skip the adminconsole change to make it work, or any other better approach.</p>