Samples

Below you will find a listing of the developer samples that demonstrate how to use the Access Control Service. These samples are categorized by the type of application that is integrating with ACS: websites, web services, as well as management.

Be sure to check the Prerequisites before starting the samples. All of these samples require the .NET Framework 4.0, Visual Studio 2010, and an account on http://windows.azure.com.

Websites: This set of samples illustrate how to integrate ACS into websites
ASP.NET Simple Forms: An ASP.NET forms sample that uses the ACS hosted login page and blanket protection for the website
ASP.NET Simple MVC2: An ASP.NET MVC 2 sample that uses the ACS hosted login page and blanket protection for the website. This sample also includes custom error handling.
ASP.NET Custom MVC3: An ASP.NET MVC 3 sample that features a custom self-hosted login page.
WordPress Plugin: An ACS plugin for the WordPress blog tool and publishing platform, written in PHP.
Web Services: Describes how to integrate ACS into web services
ASP.NET Simple Service: A very simple ASP.NET web service that uses ACS for authentication and simple authorization
WCF Username Authentication: A very simple WCF service that authenticates with ACS using a username and password
WCF Certificate Authentication: A very simple WCF service that authenticates with ACS using a certificate
WCF Federated Authentication: A very simple WCF service that authenticates with ACS using a token received from Active Directory Federation Services 2.0
ACS Windows Phone Sample: Demonstrates how a Windows Phone 7 app can call a service protected by ACS.
OAuth 2.0 Certificate Authentication: Demonstrates how to authenticates with ACS using OAuth 2.0 and X.509 certificates
OAuth 2.0 Delegation: Demonstrates OAuth 2.0 delegated access for REST web services using an extension for Windows Identity Foundation
Management Service: Illustrates how to use the ACS management service
Management Service: A very simple set of client applications that use the ACS Management Service

Last edited Sep 9, 2011 at 7:48 PM by asmalser, version 20

Comments

Streaky88 Jan 10, 2012 at 5:10 PM 
I need to try to add ACS to a WCF RIA services application. There looks to be no information anywhere on even if this is possible. We have tried to follow examples for WCF and get close but really need some direction if this is even possible before we continue.

LaStool Oct 28, 2011 at 6:12 PM 
I am having trouble tracking down the actual sample for OAuth 2.0 Delegation. Does anyone know where this sample can be found? I see the instructions on MSDN on how to run the sample, but I haven't been able to track down the sample code itself.

alikl Sep 2, 2011 at 2:48 PM 
Look at this one -

How To: Authenticate to a REST WCF Service Deployed to Windows Azure Using ACS
http://msdn.microsoft.com/en-us/library/hh289317.aspx

Helps?

kamalssource Sep 2, 2011 at 2:33 PM 
any implementation showing ACS 2.0 in action with cloud based WCF service (WCF in web role)? How to configure such a service to expect username and password from consuming client