Version 3



    A simple server login module useful to quick setup of security for testing

    purposes. It implements the following simple algorithm:

    • if password is null, authenticate the user and assign an identity of "guest"

          and a role of "guest".

    • else if password is equal to the user name, assign an identity equal to

          the username and both "user" and "guest" roles

    • else authentication fails.




    Example login-config.xml usage:

        <application-policy name="simple">
                <login-module code="" 
                              flag="required" ></login-module>


    Example web.xml usage:

                <!-- configure resources to protect here -->


    Example jboss-web.xml usage: