Roles.IsUserInRole does not work in WCF Service Library RRS feed

  • Question

  • User-1349019444 posted

    Hi there,

    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?

    Thursday, October 25, 2012 5:26 PM


  • User1779161005 posted


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, October 25, 2012 5:52 PM