Note that there are some explanatory texts on larger screens.

plurals
  1. POSpring security Redirection issue for already logged-in users
    primarykey
    data
    text
    <p>While implementing spring security with my GWT based web application. I found that. Everything is working fine as expected, except the below fact:</p> <p>I opened login.jsp and given my valid user login credentials. after submitting, it successfully redirecting to home page. Now when I am editing the URL to login.jsp in the Address bar... surprisingly it is allowing to open my login.jsp but as far my understanding.. it should not allow to go back to login.jsp untill &amp; unless I am logged-in.</p> <p>May be my security-context.xml file is not correctly configured.</p> <p>Below is my security-application-context.xml</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- - Sample namespace-based configuration - --&gt; &lt;beans:beans xmlns="http://www.springframework.org/schema/security" xmlns:beans="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.4.xsd"&gt; &lt;global-method-security secured-annotations="enabled"&gt; &lt;/global-method-security&gt; &lt;beans:bean id="customAuthenticationProcessingFilter" class="edu.authentication.CustomAuthenticationProcessingFilter"&gt; &lt;custom-filter position="AUTHENTICATION_PROCESSING_FILTER" /&gt; &lt;beans:property name="defaultTargetUrl" value="/Home.html?gwt.codesvr=127.0.0.1:9997" /&gt; &lt;beans:property name="authenticationFailureUrl" value="/login.jsp?login_error=1" /&gt; &lt;beans:property name="authenticationManager" ref="authenticationManager" /&gt; &lt;/beans:bean&gt; &lt;beans:bean id="authenticationProcessingFilterEntryPoint" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilterEntryPoint"&gt; &lt;beans:property name="loginFormUrl" value="/login.jsp" /&gt; &lt;beans:property name="forceHttps" value="false" /&gt; &lt;/beans:bean&gt; &lt;beans:bean id="customUserDetailsService" class="edu.authentication.CustomUserDetailsService"&gt; &lt;beans:property name="urmService" ref="urmService" /&gt; &lt;/beans:bean&gt; &lt;http auto-config="false" entry-point-ref="authenticationProcessingFilterEntryPoint"&gt; &lt;intercept-url pattern="/login.jsp*" filters="none" /&gt; &lt;intercept-url pattern="/forgot_password.jsp*" filters="none" /&gt; &lt;intercept-url pattern="/forgotPasswordServlet.do*" filters="none" /&gt; &lt;intercept-url pattern="/myApp/**" access="IS_AUTHENTICATED_FULLY"/&gt; &lt;intercept-url pattern="/gwt/**" access="IS_AUTHENTICATED_FULLY"/&gt; &lt;intercept-url pattern="/*.html" access="IS_AUTHENTICATED_FULLY"/&gt; &lt;logout logout-url="/j_spring_security_logout" invalidate-session="true" logout-success-url="/login.jsp?loggedout=true"/&gt; &lt;/http&gt; &lt;authentication-manager alias="authenticationManager" /&gt; &lt;authentication-provider user-service-ref="customUserDetailsService"&gt; &lt;password-encoder hash="md5" /&gt; &lt;/authentication-provider&gt; &lt;/beans:beans&gt; </code></pre> <p>Any help/suggestions would be highly appriciable..</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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