Announcement Announcement Module
Collapse
No announcement yet.
Multiple login forms issue in spring security Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Multiple login forms issue in spring security

    Hello All...

    I tried using 2 login forms in spring security. Every thing is fine..
    but for mobile login.. when user is providing wrong user_id or password it is redirecting to desktop authentication-failure-url only...

    any idea where I am wrong..
    or
    does spring security supports multiple login-forms..? pelase help.. here is the security file
    Code:
    <security:custom-filter position="PRE_AUTH_FILTER"	ref="siteminderFilter" />
    		
    		<security:intercept-url pattern="/fleet/auth/login"	access="permitAll" />
    		<security:intercept-url pattern="/fleet/login/home"	access="hasRole('ROLE_USER')" />		
    		<security:intercept-url pattern="/fleet/login/showroom"	access="hasRole('ROLE_USER')" />
    		<security:intercept-url pattern="/fleet/login/updates" access="hasRole('ROLE_USER')" />
    		<security:intercept-url pattern="/fleet/login/resources" access="hasRole('ROLE_USER')" />
    		
    		<security:form-login login-page="/fleet/auth/login"		
    		default-target-url="/fleet/login/home"		
    		authentication-failure-url="/fleet/auth/login?login_error=true"
    		authentication-success-handler-ref="driverPortalAuthenticationSuccessHandler" />
    		
    		<security:logout logout-url="/fleet/auth/logout"
    			invalidate-session="true" logout-success-url="${apache.http.url}/logout.fcc" />	
    		
                     <!--   **********************  for mobile ********************** --> 
    		<security:intercept-url pattern="/fleet/mobile/auth/login"	access="permitAll" />
    		<security:intercept-url pattern="/fleet/mobile/login/home"	access="hasRole('ROLE_USER')" />		
    		
    	    <security:form-login login-page="/fleet/mobile/auth/login"
    		default-target-url="/fleet/mobile/login/home"
    		authentication-failure-url="/fleet/mobile/auth/login?login_error=true" 
    		authentication-success-handler-ref="driverPortalAuthenticationSuccessHandler"/>
Working...
X