Spring Security
  1. Spring Security
  2. SEC-1445

Add attributes to <form-login> element to be able to configure the username/password parameters

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Complete
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.1.0.M1
    • Component/s: None
    • Labels:
      None
    • Environment:
      Spring Security 3.0.2
      Spring 3.0.1

      Description

      It would be nice to be able to configure the usernameParameter and passwordParameter of UsernamePasswordAuthenticationFilter via the <form-login> element. Something like below would be great:

      <form-login ... username-parameter="my_user_param" password-parameter="my_pass_param" ... />

        Activity

        Hide
        Taylor Leese added a comment -

        Nice. Thanks.

        Show
        Taylor Leese added a comment - Nice. Thanks.
        Hide
        Nikita D added a comment -

        Would it be possible to also add an attribute for the postOnly property on UsernamePasswordAuthenticationFilter?

        <form-login ... post-only="false" ... />

        Show
        Nikita D added a comment - Would it be possible to also add an attribute for the postOnly property on UsernamePasswordAuthenticationFilter? <form-login ... post-only="false" ... />
        Hide
        Patrick Schultz added a comment -

        Any chance we can add this to 3.0.6?

        Show
        Patrick Schultz added a comment - Any chance we can add this to 3.0.6?

          People

          • Assignee:
            Luke Taylor
            Reporter:
            Taylor Leese
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: