locked
WIF and desktop applications RRS feed

  • Question

  • Hello,

    I am new with WIF and I love it but there is one scenario that I do not see any examples of: say I have a desktop application (WPF or WinForms) which makes all business logic calls to a WCF service. I understand that the WCF proxy will take care of obtaining the token and sending it to the service, however this is not enough. I would like the application to have access to the token so it can intelligently drive UI elements based on the claims in the token - enable this widget, hide that widget, verify input, etc. Can you please point me to a sample that does that.

    I also have a question about ADFS and I realize that this is probably not the forum to ask it but I would expect that someone out there will know the answer to it and will be able answer it with simple yes or no: If I have a SQL attribute store (the one that come with ADFS) and set-up rules that transform these attributes to claims, does ADFS provide UI  (the MMC plug-in?) for assigning attribute values to users or I need to build one.


    Thanks Val


    • Edited by Valo Thursday, February 7, 2013 3:47 PM
    Thursday, February 7, 2013 3:42 PM

Answers

  • The way you typically handle that is, that your desktop app requests the token, and then calls a special operation in your backend that returns the claims for the UI as the response payload.

    wrt the attribute store - you need to build that yourself.


    Dominick Baier | thinktecture | | http://www.leastprivilege.com | @leastprivilege

    • Marked as answer by Valo Thursday, February 7, 2013 8:08 PM
    Thursday, February 7, 2013 4:54 PM
  • Similar to this:

    https://github.com/thinktecture/Thinktecture.IdentityModel.45/blob/master/Samples/MVC%20and%20WCF/Web/Wcf/ClaimsService.cs


    Dominick Baier | thinktecture | | http://www.leastprivilege.com | @leastprivilege

    • Marked as answer by Valo Thursday, February 7, 2013 8:30 PM
    Thursday, February 7, 2013 8:23 PM

All replies

  • The way you typically handle that is, that your desktop app requests the token, and then calls a special operation in your backend that returns the claims for the UI as the response payload.

    wrt the attribute store - you need to build that yourself.


    Dominick Baier | thinktecture | | http://www.leastprivilege.com | @leastprivilege

    • Marked as answer by Valo Thursday, February 7, 2013 8:08 PM
    Thursday, February 7, 2013 4:54 PM
  • Thank you for your reply. Do you have a link to code that does that by any chance? I'll appreciate it very much.

    Thanks Val

    Thursday, February 7, 2013 8:10 PM
  • Similar to this:

    https://github.com/thinktecture/Thinktecture.IdentityModel.45/blob/master/Samples/MVC%20and%20WCF/Web/Wcf/ClaimsService.cs


    Dominick Baier | thinktecture | | http://www.leastprivilege.com | @leastprivilege

    • Marked as answer by Valo Thursday, February 7, 2013 8:30 PM
    Thursday, February 7, 2013 8:23 PM