다음을 통해 공유


WPF Application With Live ID, Facebook, Google, Yahoo!, Open ID

Back to [[Windows Azure Active Directory Solutions For Developers]] 

Scenario

In this scenario you are developing WPF application that consumes RESTful WCF service. You need to integrate Internet Identity Providers (IdP's) such as Live ID, Facebook, Google, Yahoo! and Open ID 2.0 identity providers for authentication purposes.

  • WPF application with WCF (REST) service as its back end.
  • Internet Identity Providers (IdP's) such as Live ID, Facebook, Google, Yahoo!, Open ID 2.0

Solution Approach

WPF's WebBrowser control and ACS used to solve this scenario.  

  • WPF application hosts WebBrowser control that displayes IdP's and also perform actual sign in dance resulting in receiving SWT token from ACS upon successful authentication.
  • The SWT token handed to the WPF application from the hosted WebBrowser control.
  • The SWT token sent to the WCF (REST) service.
  • The WCF (REST) service validates and parses the token.

Analysis

Internet Identity providers are optimized for web applications vs. web services. This is the reason why WebBrowser control is used in this scenario to accomplish the redirects required for sign in process.

How To's

Code Samples

Resources