Debian Codegraph @

tests/test-webapps/test-jaas-webapp/src/main/webapp/index.html

raw
1 <HTML>
2 <HEAD>
3 <TITLE>JAAS Authentication and Authorization Test</TITLE>
4 <META http-equiv="Pragma" content="no-cache">
5 <META http-equiv="Cache-Control" content="no-cache,no-store">
6 <link rel="stylesheet" type="text/css" href="stylesheet.css"/>
7 </HEAD>
8 <BODY>
9 <A HREF="https://www.eclipse.org/jetty"><IMG SRC="images/jetty_banner.gif"></A>
10 <br/>
11 <b><a href="http://localhost:8080/">Demo Home</a></b>
12 <hr/>
13 <center><span style="color:red; font-variant:small-caps; font-weight:bold">Test Web Application Only - Do NOT Deploy in Production</span> </center>
14
15 <H1>JAAS Authentication and Authorization Demo </H1>
16 <h2>Preparation</h2>
17 <p>To enable JAAS in a base jetty instance do:
18 <pre>
19 $ cd $JETTY_BASE
20 $ java -jar $JETTY_HOME/start.jar --add-to-start=jaas
21 </pre>
22 </p>
23 <p>This will create a $JETTY_BASE/start.d/jaas.ini file to enable and parameterize JAAS. If no start.d directory exists, then the same initialisation will be appended to the
24 $JETTY_BASE/start.ini file. The Jetty demo-base already has JAAS enabled in its start.ini file. </p>
25
26 <p>The full source of this demonstration is available <a
27 href="https://github.com/jetty/jetty.project/tree/jetty-9.4.x/tests/test-webapps/test-jaas-webapp">here</a>.</p>
28
29 <h2>Using the Demo</h2>
30 <P>
31 Click on the link below to test JAAS <i>authentication</i> and role-based web security constraint <i>authorization</i>. Use username=&quot;me&quot; with password=&quot;me&quot;. All other usernames, passwords should result in authentication failure.
32 </P>
33 <big><b><A HREF="auth.html">LOGIN</A></b></big>
34 <p>
35 This demo uses a simple login module that stores its configuration in a properties file. There are other types of login
36 module provided with the jetty distro. For full information, please refer to the
37 <a href="https://jetty.org/docs/9/">Jetty 9 documentation</a>.
38 </p>
39
40 <hr/>
41 <center><a href="https://jetty.org/"><img style="border:0" src="images/small_powered_by.gif"/></a></center>
42
43 </BODY>
44 </HTML>