Results 1 to 2 of 2

Thread: custom login and logout url.

  1. #1
    Join Date
    Feb 2007
    Posts
    291

    Default custom login and logout url.

    hi is it possible for spring security to define its own custom url. Like instead of /spring_security_check it goes to
    /myapps/spring_security_check or
    /myapps/my_security_check
    inside the filterProcessUrl for both login and logout.


    Thanks.

  2. #2
    Join Date
    May 2008
    Posts
    34

    Default

    Hi,
    the easiest way to do so is to use the login-processing-url attribute:


    Code:
    <security:form-login login-page="/myApp/login.htm" login-processing-url="/myurl"
    			authentication-failure-url="/myApp/login.htm?login_error=true" />
    ...
    </security:form>

    Quote Originally Posted by cablepuff View Post
    hi is it possible for spring security to define its own custom url. Like instead of /spring_security_check it goes to
    /myapps/spring_security_check or
    /myapps/my_security_check
    inside the filterProcessUrl for both login and logout.


    Thanks.

Posting Permissions

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