Be the first to like this
Log on to the SharePoint 2010 site, validating the user using G-mail account, and after successful verification of users, mapping the user G-mail id in the SharePoint list with user’s domain or LDAP account, after getting the user LDAP account log on the user with that LDAP account.
For verifying the user from his/her G-mail account using Asp.net Auth Open-ID feature.
This C# library adds OpenID 2.0 Provider and Relying Party, OAuth Consumer and Service Provider, and InfoCard Selector support to your web site both programmatically and through convenient drop-in ASP.NET controls.
One can download the open id dll from link.
OpenID is an open, decentralized, free framework for user-centric digital identity. OpenID takes advantage of already existing internet technology (URI, HTTP, SSL, Diffie-Hellman) and realizes that people are already creating identities for themselves whether it be at their blog, photostream, profile page, etc. With OpenID you can easily transform one of these existing URIs into an account which can be used at sites which support OpenID logins.
The difference is that the identification will be decentralized to an external site (for example Wordpress, Yahoo, ...). The website will know whether or not the identification is OK and let you login. Conventional website authentication performs a comparison with data held in a private database, so your username and password can be used to login to this website only. With OpenID you can use the same credentials on multiple websites
One can get the complete picture about how the authentication take place using Gmail account.
User connects to OpenID enabled website.
User enters credential information.
A POST is made with a BASE64 (website to provider)
The website redirects the user to the provider to login.
User enters password and submit.
Verification is done. Login!
Configure SharePoint 2010, to authenticate the user using Gmail account and then log on the user to SharePoint site.
Create the SharePoint site configured to open the home page of the site as anonymous access. Required Custom solution to be deployed on SharePoint farm will be
1) Visual web part solution, having the Sign in button to redirect the user to Gmail authentication screen, and on authentication redirect the user to the required home page.
For complete code, visit here:
Clipping is a handy way to collect important slides you want to go back to later.