Windows Azure - How to Use Access Control Service in Our .NET Project: Part 1

WATraining

Overview

ACS

ACS

The Access Control Service (ACS) provides an easy way for us to access our web application using Microsoft, Google, Yahoo and Facebook accounts.

Prerequisites

  • Windows Azure Subscription (MSDN if you are a Tunisian)
     
  • Microsoft Visual Studio 2012

Create an Access Control

Let's start by creating a new Access Control. So to create an ACS use the following procedure:

CreateACS

  1. Open Visual Studio and create a new ASP.NET MVC 4 Project
     
  2. Now select Internet Application and then click OK.

In Solution Explorer, right-click the project and then select Identity and Access.

If you can't find it just download it from here. http://chiheb-chebbi.azurewebsites.net/?p=331

Select Use the Windows Azure Access Control Service.

Configure
 
Click  Configure.
 
ACS namespace: the name of the Active directory Access Control service.

The management Key: You will find it in the Windows Azure Management Portal.

Click Management Service and then click Management Client.
  
Select Windows Live ID and click OK.

  • Now let's add a Google Account also 
     
  • Click Identity providers and click Add 
     
  • Click Google -> Next

preconfigure

In Identity and Access Option (Visual Studio) add a Google account also as in the following:

VsAlso

Now click Relying party applications and edit it.

Finally run your project as in the following:

RunProject

Summary 

In this article we learned how to create an Access Control Service in Window Azure.


Similar Articles