none
WCF Authorization RRS feed

  • Question


  • Hi,

    Im looking for video tutorial, article or source code demo for the simplest WCF Authorization.
    I found several in google, but still a little complicated for me..
    Because im very new in this..

    Maybe anyone can help?

    Thanks in advance..
    • Edited by wapt49 Friday, August 28, 2009 1:03 PM
    Friday, August 28, 2009 1:02 PM

Answers

All replies

  • Hi,

    How are you managing authentication in your service? (which credentials are you using?).

    Regards,
    Rodrigo.

    Friday, August 28, 2009 2:01 PM

  • Hi,

    Now i have 2 programs working..

    1. client and service credentials both using certificate..

    2. client credentials using username and service credentials using certificate..

    But its fine if you have another authentication model.. the most important is i need simple example..(the simplest as possible)

    Regards,

    Putra
    Friday, August 28, 2009 2:08 PM
  • Hi Putra,

    I would recommend you first to take a look at this article: http://msdn.microsoft.com/en-us/library/cc949029.aspx.
    It shows you several alternatives for authorization along with simple and brief explanation on how to implement it.
    If you're already familiar with ASP.NET Role Providers or declarative authorization by using the PrincipalPermission attribute you will find it really easy to achieve the same with WCF.

    Hope it helps.
    Regards,
    Rodrigo.
    Friday, August 28, 2009 2:20 PM

  • Hi Rodrigo,

    Thanks for the link..
    It is possible to download any source code from that article you given to me?

    Regards,

    Putra
    Friday, August 28, 2009 2:31 PM
  • Here you have another nice and simple authorization article with a sample you can download:

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

    In case you need to create a custom authorization manager, you can use the following sample:

    http://code.msdn.microsoft.com/Project/Download/FileDownload.aspx?ProjectName=netfxsamples&DownloadId=3378

    Regards,
    Rodrigo.

    Friday, August 28, 2009 2:36 PM

  • Many thanks Rodrigo..

    I'll try to learn from those :)

    Regards,

    Putra
    Friday, August 28, 2009 2:40 PM