Debian Codegraph @

jetty-ee10/jetty-ee10-jaspi/src/main/config/etc/jaspi/jetty-ee10-jaspi-demo.xml

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
3
4 <Configure>
5 <Call class="jakarta.security.auth.message.config.AuthConfigFactory" name="getFactory">
6 <Call name="registerConfigProvider">
7
8 <!-- The Jetty provided implementation of AuthConfigProvider which will wrap a ServerAuthModule. -->
9 <Arg type="String">org.eclipse.jetty.ee10.security.jaspi.provider.JaspiAuthConfigProvider</Arg>
10
11 <!-- A Map of initialization properties. -->
12 <Arg>
13 <Map>
14 <Entry>
15 <!-- Provide the fully qualified classname of the ServerAuthModule to be used. -->
16 <Item>ServerAuthModule</Item>
17 <Item>org.eclipse.jetty.ee10.security.jaspi.modules.BasicAuthenticationAuthModule</Item>
18 </Entry>
19 <Entry>
20 <!-- Realm as utilised by Jetty Security -->
21 <Item>org.eclipse.jetty.ee10.security.jaspi.modules.RealmName</Item>
22 <Item>Test Realm</Item>
23 </Entry>
24 </Map>
25 </Arg>
26
27 <!-- Message Layer Identifier as per spec chapter 3.1 -->
28 <Arg type="String">HttpServlet</Arg>
29
30 <!-- Application Context Identifier as per spec chapter 3.2
31
32 AppContextID ::= hostname blank context-path
33 The algorithm applied here will use the
34 _serverName on the configured JaspiAuthenticatorFactory (if set) and try to match it
35 against the "server" part (in the "server /test" example below).
36 Next it will try to match the ServletContext#getVirtualServerName to the "server" part.
37 If neither are set, it will then try to match the first Subject's principal name, and finally fall back to
38 the default value "server" if none are available.
39
40 The context-path should match the context path where this applies.
41 -->
42 <Arg type="String">server /test</Arg>
43
44 <!-- A friendly description of the provided auth-module. -->
45 <Arg type="String">A simple provider using HTTP BASIC authentication.</Arg>
46 </Call>
47 </Call>
48 </Configure>