8 February 2011 0 Comments

Windows Azure AppFabric Access Control Service (ACS) v2 – Programmatically Adding OpenID as an Identity Provider Using Management Service

Adding OpenID as identity provider using Windows Azure AppFabric Access Control Service (ACS) v2 Management Service is in general similar to the procedures outlined in the following posts: Windows Azure AppFabric Access Control Service (ACS) v2 – Programmatically Adding Facebook as an Identity Provider Using Management Service Windows Azure AppFabric Access Control Service v2 – Adding Identity Provider Using Management Service (AD FS 2.0) The key differences are as follows: Change protocol type to OpenID // Create Identity Provider IdentityProvider identityProvider = new IdentityProvider () { DisplayName = identityProviderName, Description = identityProviderName, WebSSOProtocolType = "OpenId" , IssuerId = issuer.Id }; svc.AddObject( "IdentityProviders" , identityProvider); Remove code related to IdentityProviderKey altogether Update sign in address as per your OpenID provider IdentityProviderAddress signInAddress = new IdentityProviderAddress () { Address = "https://www.myopenid.com/server" , EndpointType = "SignIn" , IdentityProvider = identityProvider, }; svc.AddRelatedObject(identityProvider, "IdentityProviderAddresses" , signInAddress); Another caveat is when creating rules using Management Portal – you cannot auto generate rules. Instead, create manually at least one pass through rule so that all incoming claims from your OpenID provider will be available.

See the rest here: 
Windows Azure AppFabric Access Control Service (ACS) v2 – Programmatically Adding OpenID as an Identity Provider Using Management Service

If you liked this post, buy me a Coffee.

Leave a Reply