Saturday, August 25, 2012

Customizing the login UI when using OAuth/OpenID

Customizing the login UI when using OAuth/OpenID: In the last post I showed how you can plug in your own OAuth/OpenID provider. This post shows you how you can pass in extra data about the provider such as display name, image etc and use this information when building up the UI for login screen   If you see the experience of login screen in the ASP.NET templates, it looks like this. Let’s see how can we customize this UI to look like the following Web Forms Pass in extra data in App_Start\AuthConfig.cs when registering the provider as follows Dictionary< string , object > FacebooksocialData = new Dictionary< string , object >(); FacebooksocialData.Add( "Icon" , "~/Images/facebook.png" ); OpenAuth.AuthenticationClients.AddFacebook( appId: "your Facebook...(read more)

DIGITAL JUICE

No comments:

Post a Comment

Thank's!