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
before starting the samples. All of these samples require the .NET Framework 4.0, Visual Studio 2010, and an account on
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