<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://eclipse.dev/jetty/configure_10_0.dtd">

<!-- =============================================================== -->
<!-- Configure the demo-jaas webapp                                  -->
<!-- =============================================================== -->
<Configure id='wac' class="org.eclipse.jetty.ee10.webapp.WebAppContext">

  <Set name="contextPath">/ee10-test-jaas</Set>
  <Set name="war"><Property name="jetty.webapps" default="." />/ee10-demo-jaas.war
  </Set>
  <Set name="extractWAR">true</Set>

  <Set name="securityHandler">
    <New class="org.eclipse.jetty.ee10.servlet.security.ConstraintSecurityHandler">
     <Set name="loginService">
       <New class="org.eclipse.jetty.security.jaas.JAASLoginService">
         <Set name="name">Demo JAAS Realm</Set>
         <Set name="loginModuleName">demo</Set>
       </New>
     </Set>
    </New>
  </Set>

</Configure>

