How to Add Google Authentication into a ASP.NET Core Application

preview_player
Показать описание
We look at the authentication extensions that are available in ASP.NET Core.

Firstly, we create a new service in Google's Cloud Platform, getting the all important OAuth 2.0 client ID and secret.

Afterwards, we integrate the OAuth details into an ASP.NET Core application, allowing us to authenticate with our Google account.

Lastly, we will explore what information we get back from Google when we successfully authenticate with our application.

💻 Download the code example for this demo 💻

📖 Learn .NET and C# with our online courses 📖

Рекомендации по теме
Комментарии
Автор

I dont often write comments on youtube, but you did a great job and that is the best youtube guide for this kind of stuff. Thanks a lot and shoutout from Russia!)

ilyachudinovskikh
Автор

This is what i was actually looking for, thanks

sanjayprajapati
Автор

I just started learning ASP Net Core stuff last month. This is just what I was looking for. Thank you very much. Subscribed.

md.tahmidmozaffar
Автор

Hi, Thank you very much, excellent explanation

JuanPabloUribeRodas
Автор

Very nice explanation - thank you. I successfully added Google authentication to my asp.net core 3.1 app using your video. Next step is to add a logout button.

donaldlee
Автор

You're so awesome, you really know your stuff, great content :)

Angel_xiii
Автор

Thank you so much for this instructional video. Helped me a lot

marcioaugusto
Автор

Very informative. Keep up the good work bro :)

mrohailiqbal
Автор

I tried and its working, Thank you for the detailing explanations

ranjitumakanthan
Автор

Thanks a lot, its works you saved me hours to deal with Authentication roles and databases n just use this service ♥that

mdakatt
Автор

Thank you for explaining google authentication in very simple way, hope you might do Microsoft authentication too in next videos

iyashasgowda
Автор

Thank you for such a great video, it was very informative but I need your little bit of help, could you please explain how I get OAuth access token after "google-response"...

Usman-fmse
Автор

First of all thank you for the great guide but just one question. How do you let others access the google login from different systems.

aminarifovic
Автор

Should definitely make the solution section smaller so that we can see the whole code. I have to bring in the using because I am using VS 2022. Additionally, since that is different how did you create this project. I know it is a MVC but did you use no authentication in it that is not at all in the description. Your video is great so I am trying to make sure I know exactly what you're doing

AlThePal
Автор

Its works,

Vive!!!
Viveee!!!

Muajajajaja muajajaja

Thank

krakxp
Автор

Would this work on asp net core web application(without MVC)?

ankxnjst
Автор

Hey, thanks for the video!
For some reason after I sign in via google, I am not redirected anywhere... It just shows that I've signed in on the google button, but I'm still on the login page.

Also I tried to manually type in an authorized route to see if I'm authenticated but it results in this error:
NullReferenceException: Object reference not set to an instance of an object.
on this line:
var claims = result.Principal.Identities

Any idea what may be the problem?

prabdeepdhaliwal
Автор

Is the .net web API can do like have a mobile app with flutter, the backend is .net 5 web API and in flutter I have implement google sign in with firebase, how can I implement the API match with flutter, ...

HaoNguyen-kmxj
Автор

I don't have the fields you have, when i go to select internal vs external it talks about test users, not "everyone" I don't want to specify test users. Please ensure to elaborate on that.

Thephoenix
Автор

Hello. I would like to thank you for such good help material that you share with us.
Could you help me with something, I don't know why it gives me "Object Reference not set an instance of an object"? Do you know why it is?

I have a version of 3.4 Net.core and Microsoft of 3.1.15

pendejo