Results 1 to 3 of 3

Thread: [form-login]send data with GET methode

  1. #1
    Join Date
    Jan 2010
    Posts
    2

    Default [form-login]send data with GET methode

    Hi all,
    i'm using form login as:
    Code:
    <form-login login-page='/login.iface' default-target-url='/index.iface'
                        always-use-default-target='true'/>
    And in my login form i'm using GET methode to data to j_spring_security_check
    Code:
    <form action="/VIPNETWEB/j_spring_security_check" method="GET" name="f">
    <table>
    <tr>
    <td>User:</td>
    <td><input name="j_username" type="text" value="" /></td>
    </tr>
    <tr>
    <td>Password:</td>
    <td><input name="j_password" type="password" /></td>
    </tr>
    <tr><td colspan="2">
    <input name="submit" type="submit" /></td>
    </tr>
    <tr>
    <td colspan="2">
    <input name="reset" type="reset" /></td>
    </tr>
    </table>
    When i clic the submit bouton no authentication take place.
    But when i use POST methode instead of GET authentication takes place.

    My probleme is that i need to use GET methode so how could i configure my form-login tag to accept GET methode.
    best regards.

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

    Default

    Using GET is bad practice as the parameters are appended to the URL, so the system doesn't permit this by default. There is a parameter on UsernamePasswordAuthenticationFilter which you can set to disable this behaviour, but it isn't recommended.
    Spring - by Pivotal
    twitter @tekul

  3. #3
    Join Date
    Jan 2010
    Posts
    2

    Default

    Thank you for your reply.
    can you send me sample that do that.
    regards.

Posting Permissions

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