Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jetty-users] BasicAuthenticator called for every request

Hi there

I've set up a Jetty server with the following configuration where a secured web application is deployed. I was digging in the jetty security code and figured out that the BasicAuthenticator is called for every incoming request even the browser already got a session.

I use version 8.1.7. Have I forgotten anything to configure:

<Configure id="FileServer" class="org.eclipse.jetty.server.Server">
    <Call name="addConnector">
          <New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
            <Set name="port">8080</Set>
    <Set name="handler">
      <New class="org.eclipse.jetty.server.handler.HandlerList">
        <Set name="handlers">
          <Array type="org.eclipse.jetty.server.Handler">
              <New class="org.eclipse.jetty.webapp.WebAppContext">
                <Set name="contextPath">/fedizhelloworld</Set>
                <Set name="war">./target/test-classes/fedizhelloworld.war</Set>
                <Set name="throwUnavailableOnStartupException">true</Set>
                <Get name="securityHandler">
                  <Set name="authenticator">
                    <New class="" />
    <Call name="addBean">
        <New class="">
          <Set name="name">WSFED</Set>
          <Set name="config">./target/test-classes/</Set>
          <Set name="refreshInterval">0</Set>

thanks a lot

Back to the top