none
WCF Authorization RRS feed

  • Question

  • Hi,

    I am writing a WCF service and I want to give the authorized access to the various methods of the service to the various clients.

    For Example:

    There are two methods, A and B

    I want to provide the access of method A to client and 1 and method B to client 2.

     

    Anyone please help me to find out the solution for this.

     

    Thanks & regards,

     

    Afreen

     

     

    Friday, January 14, 2011 6:28 AM

Answers

  • Hi,

    There's a number of ways to achieve this:

    The samplest way to achieve this is using role based authorization and the PrinciplePermission attribute.

    Another option is to use the ASP.NET role provider.

    For a more comprehensive solution you could use AzMan (Authorization Manager).

     

    There's a good article here that covers them in more detail.

    http://msdn.microsoft.com/en-us/magazine/cc948343.aspx

    Regards,

    Alan

     


    http://www.CloudCasts.net - Community Webcasts Powered by Azure
    • Proposed as answer by NVDPassie for CS Friday, January 14, 2011 12:54 PM
    • Marked as answer by Yi-Lun Luo Monday, January 17, 2011 3:00 AM
    Friday, January 14, 2011 7:00 AM

All replies

  • Hi,

    There's a number of ways to achieve this:

    The samplest way to achieve this is using role based authorization and the PrinciplePermission attribute.

    Another option is to use the ASP.NET role provider.

    For a more comprehensive solution you could use AzMan (Authorization Manager).

     

    There's a good article here that covers them in more detail.

    http://msdn.microsoft.com/en-us/magazine/cc948343.aspx

    Regards,

    Alan

     


    http://www.CloudCasts.net - Community Webcasts Powered by Azure
    • Proposed as answer by NVDPassie for CS Friday, January 14, 2011 12:54 PM
    • Marked as answer by Yi-Lun Luo Monday, January 17, 2011 3:00 AM
    Friday, January 14, 2011 7:00 AM
  • Thanks Alan.

    The mentioned link is really useful.

     

     

    Friday, January 14, 2011 7:31 AM