• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

cdi/H23-May-2020-5143

sessions/H23-May-2020-729530

README.spnegoH A D23-May-20202 KiB6349

console-capture.xmlH A D23-May-20201.4 KiB2623

example-quickstart.xmlH A D23-May-20201.1 KiB276

home-base-warning.xmlH A D23-May-2020430 52

jdbcRealm.propertiesH A D23-May-20202.1 KiB7372

jetty-acceptratelimit.xmlH A D23-May-2020813 1615

jetty-alpn.xmlH A D23-May-2020922 2319

jetty-annotations.xmlH A D23-May-2020835 2014

jetty-bytebufferpool.xmlH A D23-May-2020791 1211

jetty-connectionlimit.xmlH A D23-May-2020694 1716

jetty-customrequestlog.xmlH A D23-May-20201.9 KiB3927

jetty-debug.xmlH A D23-May-20201.7 KiB3428

jetty-debuglog.xmlH A D23-May-20201.1 KiB2319

jetty-decorate.xmlH A D23-May-2020822 1913

jetty-deploy.xmlH A D23-May-20203.3 KiB7044

jetty-gzip.xmlH A D23-May-20202.6 KiB6322

jetty-http-forwarded.xmlH A D23-May-20201.9 KiB2221

jetty-http.xmlH A D23-May-20203.4 KiB4934

jetty-http2.xmlH A D23-May-20201.4 KiB3026

jetty-http2c.xmlH A D23-May-20201.1 KiB2119

jetty-https.xmlH A D23-May-20201.2 KiB2519

jetty-ipaccess.xmlH A D23-May-2020897 2622

jetty-jaas.xmlH A D23-May-2020825 167

jetty-jmx-remote.xmlH A D23-May-20202.1 KiB4018

jetty-jmx.xmlH A D23-May-20201.1 KiB3320

jetty-lowresources.xmlH A D23-May-20201.6 KiB2117

jetty-openid.xmlH A D23-May-20201.7 KiB4141

jetty-plus.xmlH A D23-May-20201.2 KiB2818

jetty-proxy-protocol-ssl.xmlH A D23-May-2020359 108

jetty-proxy-protocol.xmlH A D23-May-2020360 108

jetty-proxy.xmlH A D23-May-20201.4 KiB3531

jetty-requestlog.xmlH A D23-May-20202 KiB2820

jetty-rewrite-customizer.xmlH A D23-May-2020926 1712

jetty-rewrite.xmlH A D23-May-20201.4 KiB3119

jetty-setuid.xmlH A D23-May-20201.5 KiB2914

jetty-spring.xmlH A D23-May-20202.2 KiB5746

jetty-ssl-context.xmlH A D23-May-20203.8 KiB5522

jetty-ssl.xmlH A D23-May-20203.8 KiB6141

jetty-started.xmlH A D23-May-2020655 1310

jetty-stats.xmlH A D23-May-2020718 1511

jetty-stop.xmlH A D23-May-2020250 64

jetty-threadlimit.xmlH A D23-May-2020884 1812

jetty-threadpool.xmlH A D23-May-20202 KiB2910

jetty-unixsocket-forwarded.xmlH A D23-May-20201.2 KiB1815

jetty-unixsocket-http.xmlH A D23-May-2020468 1310

jetty-unixsocket-http2c.xmlH A D23-May-2020718 1512

jetty-unixsocket-proxy-protocol.xmlH A D23-May-2020391 108

jetty-unixsocket-secure.xmlH A D23-May-2020381 118

jetty-unixsocket.xmlH A D23-May-2020998 2117

jetty-web-decorate.xmlH A D23-May-2020675 1712

jetty-webapp.xmlH A D23-May-2020806 2319

jetty.confH A D23-May-2020492 121

jetty.xmlH A D23-May-20208.1 KiB11452

krb5.iniH A D23-May-2020524 2418

rewrite-compactpath.xmlH A D23-May-2020345 108

spnego.confH A D23-May-2020544 2018

spnego.propertiesH A D23-May-202032 11

webdefault.xmlH A D23-May-202023 KiB526280

README.spnego

1This setup will enable you to authenticate a user via SPNEGO into your
2webapp.
3
4To run with SPNEGO enabled the following command line options are required:
5
6-Djava.security.krb5.conf=/path/to/jetty/etc/krb5.ini
7-Djava.security.auth.login.config=/path/to/jetty/etc/spnego.conf
8-Djavax.security.auth.useSubjectCredsOnly=false
9
10The easiest place to put these lines are in the start.ini file.
11
12For debugging the SPNEGO authentication the following options are helpful:
13
14-Dorg.eclipse.jetty.LEVEL=debug
15-Dsun.security.spnego.debug=true
16
17
18SPNEGO Authentication is enabled in the webapp with the following setup.
19
20  <security-constraint>
21    <web-resource-collection>
22      <web-resource-name>Secure Area</web-resource-name>
23      <url-pattern>/secure/me/*</url-pattern>
24    </web-resource-collection>
25    <auth-constraint>
26      <role-name>MORTBAY.ORG</role-name>  <-- this is the domain that the user is a member of
27    </auth-constraint>
28  </security-constraint>
29
30  <login-config>
31    <auth-method>SPNEGO</auth-method>
32    <realm-name>Test Realm</realm-name>
33    (optionally to add custom error page)
34    <spnego-login-config>
35      <spnego-error-page>/loginError.html?param=foo</spnego-error-page>
36    </spnego-login-config>
37  </login-config>
38
39A corresponding UserRealm needs to be created either programmatically if
40embedded, via the jetty.xml or in a context file for the webapp.
41
42(in the jetty.xml)
43
44   <Call name="addBean">
45      <Arg>
46        <New class="org.eclipse.jetty.security.SpnegoLoginService">
47          <Set name="name">Test Realm</Set>
48          <Set name="config"><Property name="jetty.home" default="."/>/etc/spnego.properties</Set>
49        </New>
50      </Arg>
51    </Call>
52
53(context file)
54  <Get name="securityHandler">
55    <Set name="loginService">
56      <New class="org.eclipse.jetty.security.SpnegoLoginService">
57	    <Set name="name">Test Realm</Set>
58	    <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/spnego.properties</Set>
59      </New>
60    </Set>
61    <Set name="checkWelcomeFiles">true</Set>
62  </Get>
63