Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Windows Presentation Foundation (WPF) + Windows Identity Foundation (WIF)

Tags:

wpf

wif

adfs

Scenario: I need to configure a WPF application to send credentials from integrated security to an ADFS server and receive tokens back. I can't find guides describing in detail how to do this. The focus seems to be on web applications, web services, & WCF.

What are the steps to configure a WPF client? Is it possible to setup through a config file the same way a web app is configured?

like image 965
user634646 Avatar asked Jul 13 '11 17:07

user634646


People also ask

What is WCF and WPF?

WCF = Windows COMMUNICATION Foundation. WPF = Windows PRESENTATION Foundation. WCF deals with communication (in simple terms - sending and receiving data as well as formatting and serialization involved), WPF deals with presentation (UI) Follow this answer to receive notifications.

Does Microsoft still support WPF?

Net Core 3.0. This demonstrates that Microsoft still has faith in WPF as a user interface framework, and the company is still willing to invest in it by updating and integrating it with its new offerings.” “Microsoft released WPF, WinForms, and WinUI on the same day it released.NET Core 3.0 Preview 1.

What is Windows Presentation Foundation used for?

Windows Presentation Foundation is a UI framework that creates desktop client applications. The WPF development platform supports a broad set of application development features, including an application model, resources, controls, graphics, layout, data binding, documents, and security.


1 Answers

You want to implement an Active WS-Trust scenario. Follow Lab 4 - Federation with ADFS with "active" clients" from here: http://claimsid.codeplex.com/releases/view/68061 .

If you chose to call ADFS manually to get tokens follow WIF, ADFS 2 and WCF Article Series by Dominick Baier here: http://leastprivilege.com/2010/10/14/wif-adfs-2-and-wcfpart-5-service-client-more-flexibility-with-wstrustchannelfactory/

Both of those resources have helped me to implement Active WIF Scenario.

like image 100
Eugene S. Avatar answered Oct 04 '22 21:10

Eugene S.