Assigning Custom Roles for Users

Mar 30, 2011 at 8:27 AM

Is there anyway to map user-defined roles for the authenticated users. For example say user A and B are manually (in an XML file or any other source) assigned roles "guest" and "member" respectively. Can we configure WAFFLE to map the roles to User A and B correctly by looking at the predefined mapping when users are being authenticated.

 

Coordinator
Mar 30, 2011 at 11:22 AM

The whole point of waffle is to use Windows groups, which translate into roles. But if you want to give users further roles or do some mapping the answer depends on what you're using: Tomcat? Spring?

The obvious answer is probably that you have to write a filter that does this: given an authenticated user, lookup some mapping to add roles to his principal.