• 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 ...
Marshals:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

Basic question of Acegi  RSS feed

 
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.
I'm currently looking at Acegi security framework.
No doubt, it is complicated but there is something I don't know how to do it.
After a successful authentication, Acegi store some kind of information in the session scope (it uses a predefined filters).
What if I want also to store some kind of information after a successful authentication ?
 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You will have to implement your own UserDetailsService. The UserDetailsService is used by Acegi to build the Authentication object, which contains the principal (this can be any object, but you will have to create a UserDetails Object). You will define the userdetailsservice as follows in your spring configuration (i've only worked with acegi on spring).



I haven't implemented this myself though.


Alternatively, it is also possible to use the setContext() method of the SecurityContextHolder. The SecurityContext object can be set to hold an Authentication object. Although, you would want to do this once (at login).
[ April 11, 2007: Message edited by: Abhi Vuyyuru ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!