| <HTML> |
| <HEAD> |
| <TITLE>JAAS Authentication and Authorization Test</TITLE> |
| <META http-equiv="Pragma" content="no-cache"> |
| <META http-equiv="Cache-Control" content="no-cache,no-store"> |
| <link rel="stylesheet" type="text/css" href="stylesheet.css"/> |
| </HEAD> |
| <BODY> |
| <A HREF="http://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A> |
| <br/> |
| <b><a href="http://localhost:8080/">Demo Home</a></b> |
| <hr/> |
| <center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center> |
| |
| <H1>JAAS Authentication and Authorization Demo </H1> |
| <h2>Preparation</h2> |
| <p>To enable JAAS in a base jetty instance do: |
| <pre> |
| $ cd $JETTY_BASE |
| $ java -jar $JETTY_HOME/start.jar --add-to-startd=jaas |
| </pre> |
| </p> |
| <p>This will create a $JETTY_BASE/start.d/jaas.ini file to enable and parameterise JAAS. If the --add-to-start option instead, then the same initialisation will be appended to the |
| $JETTY_BASE/start.ini file instead. The jetty demo-base already has JAAS enabled in the start.ini file. </p> |
| |
| <p>The full source of this demonstration is available <a |
| href="https://github.com/eclipse/jetty.project/blob/master/tests/test-webapps/test-jaas-webapp">here</a>.</p> |
| |
| <h2>Using the Demo</h2> |
| <P> |
| Click on the link below to test JAAS <i>authentication</i> and role-based web security constraint <i>authorization</i>. Use username="me" with password="me". All other usernames, passwords should result in authentication failure. |
| </P> |
| <big><b><A HREF="auth.html">LOGIN</A></b></big> |
| <p> |
| This demo uses a simple login module that stores its configuration in a properties file. There are other types of login module provided with the jetty distro. For full information, please refer to the <a href="http://www.eclipse.org/jetty/documentation/current/">Jetty 9 documentation</a>. |
| </p> |
| |
| <hr/> |
| <center> <a href="http://www.eclipse.org/jetty"><img style="border:0" src="images/small_powered_by.gif"/></a></center> |
| |
| </BODY> |
| </HTML> |