| 1 |
<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://jetty.org/configure_9_3.dtd"> |
| 2 |
<Configure id="Server" class="org.eclipse.jetty.server.Server"> |
| 3 |
<!-- =========================================================== --> |
| 4 |
<!-- Configure Authentication Login Service --> |
| 5 |
<!-- Realms may be configured for the entire server here, or --> |
| 6 |
<!-- they can be configured for a specific web app in a context --> |
| 7 |
<!-- configuration (see $(jetty.home)/webapps/test.xml for an --> |
| 8 |
<!-- example). --> |
| 9 |
<!-- =========================================================== --> |
| 10 |
<Call name="addBean"> |
| 11 |
<Arg> |
| 12 |
<New class="org.eclipse.jetty.security.HashLoginService"> |
| 13 |
<Set name="name">Test Realm</Set> |
| 14 |
<Set name="config"><Property name="jetty.demo.realm" default="etc/realm.properties"/></Set> |
| 15 |
<Set name="hotReload">false</Set> |
| 16 |
</New> |
| 17 |
</Arg> |
| 18 |
</Call> |
| 19 |
|
| 20 |
<Get class="org.eclipse.jetty.util.log.Log" name="rootLogger"> |
| 21 |
<Call name="warn"><Arg>demo test-realm is deployed. DO NOT USE IN PRODUCTION!</Arg></Call> |
| 22 |
</Get> |
| 23 |
</Configure> |