0 Replies Latest reply on Jan 15, 2014 3:02 PM by Rodrigo Parede

    Security domain for all applications

    Rodrigo Parede Newbie


      I have 2 applications .war and used jaas for authentication in my project, after migration of jboss 4 to jboss 7 i need authentication in de two applications.


      I would like to use only one authentication for 2 applications, it is possible?


      see my configuration:


      <security-domain name="myAuth" cache-type="default">
                              <login-module code="Database" flag="sufficient">
                                  <module-option name="dsJndiName" value="java:jboss/datasources/myDS"/>
                                  <module-option name="principalsQuery" value="SELECT password FROM user WHERE username=?"/>
                                  <module-option name="rolesQuery" value="SELECT r.description, 'Roles' FROM role r, cms_user_roles ur, cms_user u WHERE ur.user_id=u.id AND ur.role_id=r.id AND u.username=?"/>
                                  <module-option name="hashAlgorithm" value="MD5"/>
                                  <module-option name="hashEncoding" value="base64"/>