• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Authorization using spring security

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am new to spring security.

after reading I understood that spring has many providers to do the authentication. but in my case following is the scenario.

for authentication I have to use LDAP. I am ok with it and understood how to do it in spring.

but for authorization the data is stored in database. I mean to say that all the roles and access information is stored in database. what approach should I take for this thing to implement in spring. please give me some inputs.
 
Ranch Hand
Posts: 672
4
Eclipse IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is the common scenario, for most of the cases, i.e. Authentication is from LDAP and authorization from Database. Here, LdapAuthenticationProvider is the Authentication Provider, it takes two classes as constructor arguments, one is the Authenticator class, this can be BindAuthenticator or any other which authenticates from LDAP. The other is the Authorities Populator class, here you can implement the LdapAuthoritiesPopulator interface and return your roles (from database).
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic