After lot of investigation, I found one good solution for google
Authentication in mvc application.
If your application is not working on google+ login, using below code you can find solution for the problem.
OAuthWebSecurity.RegisterGoogleClient();
Simple Steps to achieve google + login in mvc application.
Step 1: Install GoogleOAuth2 Using Package Manager Console.
Below you can find the command
Install-Package
DotNetOpenAuth.GoogleOAuth2
Step 2: Add following code in RegisterAuth() method.
GoogleOAuth2Client googleClient=new GoogleOAuth2Client("Your-ClientId", "Your-ClientSecret");
OAuthWebSecurity.RegisterClient(googleClient, "Google", new Dictionary<string, object>());
This will allows you to authenticate google.
Step 3: In ExternalLoginCallback method has to call
GoogleOAuth2Client.RewriteRequest(); method
to get the result, before calling the “VerifyAuthentication” method.
AuthenticationResult result = OAuthWebSecurity.VerifyAuthentication(Url.Action("ExternalLoginCallback", new { ReturnUrl =
returnUrl }));
Hope this will help you... :)
Your feedback and suggestions are always welcomed.