jetty security realm static content -
jetty 9
setting context xml serve static html, dynamically generated @ end of various ci processes
i set hashlogin realm in jetty.xml follows
<call name="addbean"> <arg> <new class="org.eclipse.jetty.security.hashloginservice"> <set name="name">test realm</set> <set name="config">e:/jimmy/http/jetty-distribution-9.2.10.v20150310/etc/realm.properties</set> </new> </arg> </call>
then in context.xml this
context path: /jimmyndepend
<get name="securityhandler"> <set name="loginservice"> <new class="org.eclipse.jetty.security.hashloginservice"> <set name="name">test realm</set> <set name="config">/etc/realm.properties</set> </new> </set> </get>
set name="resourcebase" e:/jimmy/html
the realm this:
guest: guest
however when starting jetty, can browse context /jimmyndepend , not prompted user/password.
can without web.xml?
thanks
Comments
Post a Comment