Note that there are some explanatory texts on larger screens.

plurals
  1. POspring security 2.0.6 AuthenticationProcessingFilter authenticationFailureUrl not working
    text
    copied!<p>I solved my issue here.</p> <p>I had forgotten about the following:</p> <pre><code>&lt;beans:bean id="authenticationProcessingFilterEntryPoint" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint"&gt; &lt;beans:property name="loginFormUrl" value="/index.jsp" /&gt; &lt;beans:property name="forceHttps" value="false" /&gt; &lt;/beans:bean&gt; </code></pre> <p>As you can see from above I do have /index.jsp and that is where it is trying to go.</p> <p>The other issue is the following line</p> <pre><code> &lt;concurrent-session-control max-sessions="1" exception-if-maximum-exceeded="true"/&gt; </code></pre> <p>So this tells me to throw and exception.</p> <p>So in the end - everything appears to be working as expected.</p> <hr> <p>Original Post:</p> <p>As the subject states I have the following configuration:</p> <pre><code>&lt;beans:bean id="authenticationProcessingFilter" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"&gt; &lt;custom-filter position="AUTHENTICATION_PROCESSING_FILTER" /&gt; &lt;beans:property name="defaultTargetUrl" value="/admin/adminLanding.html"/&gt; &lt;beans:property name="authenticationManager" ref="authenticationManager" /&gt; &lt;beans:property name="authenticationFailureUrl" value="/login.jsp?login_error=1"/&gt; &lt;beans:property name="allowSessionCreation" value="true" /&gt; &lt;beans:property name="targetUrlResolver" ref="roleBasedTargetUrlResolver" /&gt; &lt;/beans:bean&gt; </code></pre> <p>My expectation is that when a authentication fails or has expired that it would make use of the setting for authenticationFailureURL. But what I get is the following error in my log:</p> <p>The requested resource (/ecotrak/index.jsp) is not available.</p> <p>I do not understand why it is looking for index.jsp when I have given /login.jsp?login_error=1 as the value.</p> <p>Any direction it this?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload