• 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
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Spring Boot - Security Config - Multiple authentication manager

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have both WebSecurityConfigurerAdapter( for DB auth ) and GlobalAuthenticationConfigurerAdapter (for ldap auth) in my application and using WebSecurityConfigurerAdapter for website auth and GlobalAuthenticationConfigurerAdapter for jms authentication.

I am not sure how to expose both the authentication manager so that I can inject both the authentication manager through auto-wiring, wherever needed.

I tried,

But it returns only the AuthenticationManager from the websecurityconfigurerDaapter.

Help will be greatly appreciated.

Is this the real life? Is this just fantasy? Is this a tiny ad?
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic