vendredi 26 août 2016

JBOSS 6.4.0 EAP configure web application to access with users of ManagementRealm

I need my web application to access with same users configured in the ManagementRealm, which is configured into jboss 6.4.0 EAP configuration file mgtm-users.xml.

This is my web.xml:

<web-app xmlns="http://ift.tt/19L2NlC" xmlns:xsi="http://ift.tt/ra1lAU"
xsi:schemaLocation="http://ift.tt/19L2NlC
     http://ift.tt/1drxgYl"
version="3.1">

<security-constraint>   
    <web-resource-collection>       
        <web-resource-name>Wildcard means whole app requires authentication</web-resource-name>
        <url-pattern>/*</url-pattern>
        <http-method>GET</http-method>
        <http-method>POST</http-method>
    </web-resource-collection>
    <auth-constraint>
        <role-name>SuperUser</role-name>            
    </auth-constraint>
    <user-data-constraint>
        <transport-guarantee>NONE</transport-guarantee>
    </user-data-constraint>        
</security-constraint>
<security-role>
    <role-name>SuperUser</role-name>        
</security-role>
<login-config>
    <auth-method>BASIC</auth-method>
    <realm-name>ManagementRealm</realm-name>
</login-config>

Basically, I left the standalone.xml configuration file with default values.

When I point to my project address, the authentication window appears but I can't access with the user I use to login with the jboss console.

What am I missing still ?




Aucun commentaire:

Enregistrer un commentaire