Win a copy of Hands On Software Engineering with Python this week in the Jython/Python forum!
  • 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
  • Jeanne Boyarsky
  • Bear Bibeault
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Tim Moores
  • Frits Walraven
  • Ron McLeod
  • Ganesh Patekar
  • salvin francis
  • Tim Holloway
  • Carey Brown
  • Stephan van Hulst

Basic question of Acegi  RSS feed

clojure forum advocate
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?
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 ]
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!