Equivalent to CAB's Action Catalog?

Topics: Prism v4 - WPF 4
Jul 18, 2011 at 2:13 AM

I'm evaluating using PRISM for a new project and part of my research is determining if PRISM will have many of the services and features that I've come to depend on with CAB.  One area I can't seem to find much information on is how to incorporate role-based security in a PRISM application.  I found one thread which doesn't really address the issue to my satisfaction: http://compositewpf.codeplex.com/discussions/247854

I require a more granular solution that simple module catalog level security, I need the type of control the Action Catalog provided.  Can anyone comment if there is an equivalent in PRISM and if not... how are some of you handling role based security with your PRISM apps?

Developer
Jul 18, 2011 at 1:35 PM

Hi,

The subject of authentication and authorization isn't supported in Prism out of the box. Therefore, there is no equivalent of the action catalog in the Prism Library, nor there is guidance in the Prism assets that indicates how to achieve that.

However, there should be no impediments for you to create a custom service of your own, that achieves similar functionality.

I hope you find this helpful.

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi

Jul 26, 2011 at 5:32 AM

Hi Guido,

Thank you for the reply.  I'm disappointed that there aren't existing solutions for the larger topic of authentication & authorization.  I'm curious, maybe you know; was this a conscious and planned decision to exclude an Action Catalog-like system in Prism?  I would have thought P&P would look at what worked in CAB (obviously I think action catalog was valuable - maybe most don't?) and roll it all into prism.  Of course I understand they can't do EVERYTHING and maybe action catalog is one of the item that was chopped due to limited resources.  Anyway, just kind of wondering why something so valuable (IMO) wasn't rolled in.

Anyone else have any input?  Did you all use action catalog?  If not, what strategy or pattern did you employ to conditionally expose features based on the current user's permissions?

Thanks,
Steve

Developer
Oct 7, 2011 at 9:00 PM
Edited Oct 7, 2011 at 9:01 PM

Steve,

You might find the following blog post useful, which deals with authentication and role based authorization in Prism (using shared services):

Authentication and role based authorization in Prism v4

Thanks,

Guido Leandro Maliandi
http://blogs.southworks.net/gmaliandi