diff options
Diffstat (limited to 'test-jetty-webapp/src/main/config/etc/jetty-testrealm.xml')
-rw-r--r-- | test-jetty-webapp/src/main/config/etc/jetty-testrealm.xml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/test-jetty-webapp/src/main/config/etc/jetty-testrealm.xml b/test-jetty-webapp/src/main/config/etc/jetty-testrealm.xml new file mode 100644 index 0000000000..5926b19c89 --- /dev/null +++ b/test-jetty-webapp/src/main/config/etc/jetty-testrealm.xml @@ -0,0 +1,23 @@ +<?xml version="1.0"?> +<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.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)/contexts/test.xml for an --> + <!-- example). --> + <!-- =========================================================== --> + <Call name="addBean"> + <Arg> + <New class="org.eclipse.jetty.security.HashLoginService"> + <Set name="name">Test Realm</Set> + <Set name="config"><Property name="jetty.home" default="."/>/etc/realm.properties</Set> + <Set name="refreshInterval">0</Set> + </New> + </Arg> + </Call> + +</Configure> |