[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[jetty-users] 9.4: can I get rid of LoginService if no login?
|
I'm trying to simplify before open-sourcing. I used to have a HashLogin,
and it seems I can't get rid of the requirement. E.g. it wants the
securityHandler, and an empty jetty-base/etc/realm.properties is needed
at least.
9.4
Thanks,
Bill
I seem to need this in jetty-base/webapps/app.xml:
<Get name="securityHandler">
<Set name="loginService">
<New class="org.eclipse.jetty.security.HashLoginService">
...
</Set>
<Set name="authenticator">
<New
class="org.eclipse.jetty.security.authentication.FormAuthenticator">
<Set name="alwaysSaveUri">true</Set>
</New>
</Set>
<Set name="checkWelcomeFiles">true</Set>
</Get>
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@77825085 in
ConstraintSecurityHandler@3568f9d2{STARTING}
at
org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:92)
at
org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:410)
at
org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:417)
--
Phobrain.com