Add Sign in with Google in Your ASP.NET MVC App: Step-by-step Tutorial

preview_player
Показать описание
In this tutorial, you'll learn how to seamlessly integrate Google login into your ASP.NET MVC application. We'll cover everything from initial setup to handling user authentication and account creation. Check it out!
------------
------------
------------
🌐 Connect & Learn:
------------
Check out my Udemy courses:
------------
00:00 - Introduction
03:33 - ViewModel Login Updates
05:56 - View Changes
08:44 - Testing Provider List
09:38 - ExternalLogin Action Setup
13:20 - Creating Google Auth App
17:05 - Test Google Popup
17:53 - ExternalLoginCallback Update
20:26 - User Login Handling
21:28 - New User Creation
24:39 - Final Testing
26:35 - Thank You
Рекомендации по теме
Комментарии
Автор

Respect sir. Your way of delivering your classes are awesome 👌. I celebrate you sir

orjisamuelobinna
Автор

Just FYI, this is good tutorial. THANK YOU :) It's a 'hello world' regarding 3rd login. However, if you would like a bit more mature/commercially oriented approach I propose:
1. Create MVC app with Individual Accounts
2. Scaffold Identity Views
3. Setup the GoogleAuth the way shown in this video in Program.cs and appsettings.json (however I would rather propose mapping config to actual objects)
4. Modify on Callback method in the scaffolded code-behind (make sure to create account right away after Google Auth response and the account should be active).

s
Автор

Line 326 in 26:22 return RedirectToAction("Index", "Home");, we should redirect to return url not home page, right?

s
Автор

Thank you very much for these kind of informative video.

KhilendraChaudhary
Автор

hi sir.. whats AppUser in your code? i cant find the class in your github's link

tanoryjakaperdana
Автор

how to Google icon in style buttom? I can remove text "Google".

Haimon-Cardoso