Two UserDetailsServices in Spring, Java config -


i trying configure 2 userdetailsservices authentication of 2 different user groups , came across this post. however, using xml configuration, how accomplish same using java configuration?

as far know, http element configured overriding configure(httpsecurity http) method, how configure multiple http elements?

i know in many scenarios, sufficient have 1 userdetailsmanager manages 2 user database tables, curious how other solution in case decide it.

i not see reason using 2 userdetails implementations, saying need authenticate 2 different user groups. suggest @ http://docs.spring.io/spring-security/site/docs/current/reference/htmlsingle/#authorization , think give lot of pointers should go there. in need upon authentication in system know logged in user role , define it. 2 ways indeed 1 via xml second annotation based in @configuration java class specifics laid out there. read above link posted , should able see spring offers , in need actually.

would take lot of space first put down , second broad question asking post link referring incorrect in way handles spring security.


Comments

Popular posts from this blog

qt - QML MouseArea onWheel event not working properly when inside QML Scrollview -

java - is not an enclosing class / new Intent Cannot Resolve Constructor -

python - Error importing VideoFileClip from moviepy : AttributeError: 'PermissionError' object has no attribute 'message' -