-
Notifications
You must be signed in to change notification settings - Fork 2
/
ee9-test-realm.xml
28 lines (26 loc) · 1.25 KB
/
ee9-test-realm.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-" "http://www.eclipse.org/jetty/configure_9_3.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== -->
<!-- Configure Authentication Login Service -->
<!-- Realms may be configured for the entire server here, or -->
<!-- they can be configured for a specific web app in a context -->
<!-- configuration (see $(jetty.home)/webapps/test.xml for an -->
<!-- example). -->
<!-- =========================================================== -->
<Call id="ResourceFactory" class="org.eclipse.jetty.util.resource.ResourceFactory" name="of">
<Arg><Ref refid="Server" /></Arg>
<Call id="realmResource" name="newResource">
<Arg><Property name="jetty.demo.realm" default="etc/realm.properties" /></Arg>
</Call>
</Call>
<Call name="addBean">
<Arg>
<New class="org.eclipse.jetty.security.HashLoginService">
<Set name="name">default</Set>
<Set name="config"><Ref refid="realmResource"/></Set>
<Set name="hotReload">false</Set>
</New>
</Arg>
</Call>
</Configure>