Win a copy of Five Lines of Code this week in the OO, Patterns, UML and Refactoring 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Acegi configurable roles and Authorization

 
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
I posted in another forum with not too much of specific help.Hence I post here.
I need to make user groups and I need to be able to configure (without interfering with the code) those user groups in such a way that I can decide which user groups will have access to which jsps.
Then within the jsps, before displaying all the fields. I need to check for the profile the user belongs to. If the user is a technician then only the tech. related fields are displayed. If the user is admin all the fields are displayed on the jsp.

I have been challenged in finding a proper approach that I can follow for this.
I plan to use ACEGI with spring MVC.

I have read enough blogs, other posts and googled for it.
Any advice on what direction I can follow, will be greatly appreciated.

Thank you so much for your time.
 
Ranch Hand
Posts: 451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well you can get the list of roles for each user from whatever your provider is, i.e. LDAP server, database, or even a properties file.

As to displaying/hiding information based on the user's roles, Acegi provides a jsp tag library that makes it very easy.
[ August 07, 2007: Message edited by: Ken Krebs ]
 
All of life is a contant education - Eleanor Roosevelt. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic