Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Provides a wrapper for Home Realm Discovery in Windows Azure AppFabric ACS

branch: master

Merge pull request #1 from codingoutloud/patch-1

HAHA.. Great catch & comment!
latest commit 8769953dbe
Cory Fowler authored
readme.md

Windows Azure ACS Management

Download on NuGet

Introduction

This Project provides some management functionality around the Windows Azure AppFabric Access Control Service.

Currently, the only feature is a Wrapper of Home Realm Discovery (Documented)

Find out more about Access Control

Requirements

*.Net 4.0

How to Use

Install via NuGet

PM> Install-Package WindowsAzure.ACS.Management

Retrieve Home Realms in Code

public ActionResult LogOn()
{
var manager = new ACSServiceManager("<ACS Namespace Name>", "<Realm Uri>");
IIdentityProvider[] providers = manager.GetIdentityProviders<IdentityProvider>();
return View(providers);
}

Create a Logon Control

<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<SyntaxC4.WindowsAzure.ACSManagement.IIdentityProvider>>" %>
<ul class="login">
<% foreach (var ip in Model)
{ %>
<li class="login-item">
<object data="<%: ip.ImageUrl %>" onclick="javascript:location.href='<%: ip.LoginUrl %>'">
<a href="<%: ip.LoginUrl %>" class="login-item-link"><%: ip.Name %></a>
</object>
</li>
<% } %>
</ul>

Setup Claims Aware ASP.NET Site

Review this blog post

License

Copyright (c) 2011 Cory Fowler Published under the MIT License, see LICENSE.

Something went wrong with that request. Please try again.