• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

Adding one more criteria along with username and password (Spring Security)

Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

I am using Spring Security for Authentication. Currently i am authenticating username and password. Now my requirement is to add one more field with user name and password say something like Dept. Now if all the three values matches then only the user should be authenticated. Otherwise not. So how to add third field to my login page which will be authenticated along with user name and password. I came to know that userDetailsService will accept only username and password. how to add the third.

Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic