12 9 / 2011

Custom Username Password Parameter Names in Spring Security 3

Spring Security 3 does not allow custom parameter names for username & password, if you are using using form based login. You have to use the default j_username and j_password. This may not be a problem for many use cases, but sometimes you would want to change that.

A feature request is in process by Spring Security community. If you dont want to wait till that’s done, here’s a quick fix.

It can be loaded into your config file like this,

Tags:

Permalink 1 note