ASP NET Web API google authentication

kudvenkat · 194K views · 2016 · 32:35

Open on YouTube

Web developmentSecurity & hackingtutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it as a step-by-step reference when setting up Google OAuth in ASP.NET Web API, and often come back with errors they hit while following it.

Recommended by 0 people across 0 different months, 2017 to 2018.

What it is

A 32-minute tutorial by kudvenkat from his ASP.NET Web API series on adding Google social login to a Web API project. It covers the benefits of social logins and walks through wiring up Google authentication with the OWIN middleware.

What people said

Cites LegendDemonSlayer · 2017-07 · Stack Overflow · on “Weird Looping on ExternalLogin .net API for Google OAuth”

I got a help from youtube video on how to create a Google Authentication for .net projects. Here is his video [this video] , and his documentation [LINK] . I followed every step but I still get the same problem. For some reason, the ExternalLogin in the AccountController keeps looping, and when I have logged in to Google, Chrome tells me that accounts.google.com redirected you too many times. How my code works at the moment: Click on "Login With Google" Redirected to Google for email and password Enter Email and Password and click sign in ExternalLogin starts looping, Chrome says accounts.google.com redirected you too many times I am suspecting that the Access Token is not generated because on th

Cites Ahsan Sohail · 2018-04 · Stack Overflow · on “Unable to update Microsoft.Owin.Security.Google from version 2.0.0 to 4.0.0”

I am trying to implement external authentication in my Web-api project by following this link [this video] app.UseGoogleAuthentication(new GoogleOAuth2AuthenticationOptions() { ClientId = "", ClientSecret="" }); The code above could not find GoogleOAuth2AuthenticationOptions class.. searching through the problem it appears that my microsoft.owin.security.google package is not updated. When i try to update it using NuGet, it fails to download the package showing the following error: NuGet Error while downloading the Microsoft.Owin.Security.Goolge 4.0.0 [LINK] How do i update the package and make the google authentication work

Cites d.jazel · 2018-08 · Stack Overflow · on “ASP NET Web API google authentication issue HTTP 404”

I am trying to setup a social login for my site. Here is what I did: I created credentials on google and have both ClientID and Secret In default MVC app, in App_Start Startup.Auth.cs I uncommented app.UseGoogleAuthentication()* method, so it looks like this: [LINK] Build solution! Made sure authorized JavaScript origins and Redirect url are correct. And other things that are needed on console.cloud.google.com are done. Including activation of Google+ API Eventually Google authentication button should appear in _ExternalLoginsListPartial partial view. But as I can see I have 0 login providers still. And not sure why, and what can I do about it? var loginProviders = Context.GetOwinContext().A

Cites SamGhatak · 2018-11 · Stack Overflow · on “ASP.NET MVC authentication and credentials”

though this is not exactly an answer, but the post is likely going to be closed. There are some nice resources in the web from which you can find some ideas, please look into the following ones: [this video] [LINK]