Demo Home Source Jetty Project Home Documentation Commercial Support
Demo Web Application Only - Do NOT Deploy in Production

JAAS Demo

This is a demo webapp for the Eclipse Jetty HTTP Server and Servlet Container. It was added into your $JETTY_BASE/webapps directory. It uses a simple login module that stores its configuration in a properties file.

Preparation

To use JAAS in a base jetty instance enable the jaas module:

    $ cd $JETTY_BASE
    $ java -jar $JETTY_HOME/start.jar --add-module=jaas
    

The demo module pre-enables the jaas module.

Using the Demo

Click on the link below to test JAAS authentication and role-based web security constraint authorization. Use username=me with password=me. All other usernames and passwords should result in authentication failure.

START