Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: How to replace form-login

  1. #11
    Join Date
    Jul 2008
    Posts
    5

    Default

    I presume that the login processing URL is the filterProcessesUrl on my custom AuthenticationProcessingFilter:

    <property name="filterProcessesUrl" value="/j_security_check"/>

    Someone else may know more about what <form-login login-processing-url="/path"> actually does.

    Richard

  2. #12

    Default

    I have no idea what form-login does but when I replaced "j_security_check" with "processLogin" it got passed my previous error. I'm not sure if this will cause a negative effect later.

    Can someone help clear up what form-login is doing and how replacing it should be configured?

  3. #13
    Luke Taylor is offline Senior Member Acegi Security System TeamSpring Team
    Join Date
    Aug 2004
    Location
    Glasgow, Scotland
    Posts
    3,449

    Default

    form-login creates an AuthenticationProcessingFilter. This is explained here

    http://static.springframework.org/sp...custom-filters

    You need to understand how this and the other filters work if you are going to customize them. The property "filterProcessesUrl" aka "login-processing-url" defaults to "/j_spring_security_check" and is the URL that the login form should submit to and which the filter will intercept to handle the login request. Using "/j_security_check" is not a good idea as that is the default J2EE form login URL and some containers may choose to process it themselves without presenting it to the application.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •