Last post Oct 30, 2012 04:07 AM by oak_silver
Oct 25, 2012 05:24 PM|rekiller|LINK
I have used AzMan Roles for years, on Windows Forms Apps and WebForms Apps, but now I'm using WCF and I want to Authorizate permissions via AzMan,
I can Check operations with AzAuthorizationStore, IAzApplication and IAzClientContext AccessCheck, but now I am looking for role access,
In WebForms you can user Roles.IsUserInRole, from System.Web.Security, but in Class Library doesn't exists,
I've added System.Web.ApplicationServices, and import security by: Using System.Web.Security,
I tried to open a Role by app.OpenRole function, and accessing all its membersname, but this does not work for Nested Roles - Groups,
Is there a way to use Roles.IsUserInRole in Class Project Library? Is there another way to achieve this?
Oct 30, 2012 04:07 AM|oak_silver|LINK
Do you try Thread.CurrentPrincipal.IsInRole suggested in your another thread?