• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Spring Boot - Security Config - Multiple authentication manager

Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • 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.

    Bookmark Topic Watch Topic
  • New Topic