Topics
Published on December 30, 2016 by kudvenkat

Text version of the video
csharp-video-tutorials.blogspot.com/2016/12/aspnet-web-api-google-authentication.html

Slides
csharp-video-tutorials.blogspot.com/2016/12/aspnet-web-api-google-authentication_30.html

All ASP .NET Web API Text Articles and Slides
csharp-video-tutorials.blogspot.com/2016/09/aspnet-web-api-tutorial-for-beginners.html

All ASP .NET Web API Videos

All Dot Net and SQL Server Tutorials in English
www.youtube.com/user/kudvenkat/playlists?view=1&sort=dd

All Dot Net and SQL Server Tutorials in Arabic
www.youtube.com/c/KudvenkatArabic/playlists

In this video we will discuss
1. Benefits of social logins
2. Using Google authentication with ASP.NET Web API

Benefits of social logins

Registration is simple and easy. All they have to provide is their social login username and password and the user is registered with our application. This also means one less password to remember. When users don’t have to remember mulitple usernames and passwords to login to multiple web sites, there will be less failed logins. As you know remembering multiple usernames and passwords is definitely as hassle.

From development point of view, we do not have to write code to manage usernames and passwords. All this is done by the external authentication providers like Google, Facebook, Twitter, Microsoft etc.

Using Google authentication with ASP.NET Web API : When the user clicks “Login with Google” button, he will be redirected to Google login page. The user will then provide his Google credentials. Once the login is successful, the user will be redirected to our application with an access token, which is a proof that the user is successfully authenticated and our web application grants access to the protected resources.

To use Google account for authentication, we will have to first register our application with Google. For the steps to register your application with Google and enable google authentication please check the following article.
csharp-video-tutorials.blogspot.com/2016/12/aspnet-web-api-google-authentication.html

Leave a Reply

35 Comments on "ASP NET Web API google authentication"

Notify of
avatar

mayank bhuvnesh
Guest
mayank bhuvnesh
2 months 6 days ago

Hi SirIn case we want to allow both manual registrations and social media, do we have to create two tables oe that can be managed from one table only?

Plam Ivanov
Guest
Plam Ivanov
2 months 25 days ago

Yes, I would make a google login by myself thanks to Venkat :))))

Vikash Kumar
Guest
Vikash Kumar
2 months 29 days ago

Hello sir please make a video for making multilingual website using dropdown list of languages with County flags.

ExcitingMonkey
Guest
ExcitingMonkey
3 months 3 days ago

Hi, Can someone tell me why is the redirecturi differs i.e when the app is registered in google, he specifies a redirectUri-localhost:xxxx/signin-with-google but after authenticating ,,user is actually redirected to data.html since it is specified in the redirecturi component of url. So my question is when is the AuthorizedURI comes under the picture redirect flow between application and google?

Narendra Gupta
Guest
Narendra Gupta
3 months 9 days ago

Sir,

When I click localhost:54046/api/Account/ExternalLogin?returnUrl=%2F&generateState=true in my local am getting error instead of getting another URL

<Error><Message>No HTTP resource was found that matches the request URI 'localhost:54046/api/Account/ExternalLogin?returnUrl=%2F&generateState=true&#039;.</Message><MessageDetail>No type was found that matches the controller named 'Account'.</MessageDetail></Error>

Could you please where to set to get the redirection URL?

Regards
Naren

Todd Morrow
Guest
Todd Morrow
3 months 13 days ago

Shouldn't this be done server side?

Ihsan Ullah
Guest
Ihsan Ullah
3 months 21 days ago

Please Sir record a video on the concepts that how to host an ASP.NET website on a web server along with an example database Please sir

vijay kamble
Guest
vijay kamble
3 months 24 days ago

Kudvenkar sir can you please add MSBI Video as well

vijay kamble
Guest
vijay kamble
3 months 24 days ago

really great videos.. Its really very helpful… superb

Shams khan
Guest
Shams khan
3 months 26 days ago

After Login When i try to click loadEmployee i get Authorize has been denied for the Request why i am getting this error Any Reason – via YTPak(.com)

1 2 3
wpDiscuz