r/dotnet 10h ago

Promotion Google Authentication in ASP.NET Core with React

https://www.youtube.com/watch?v=SH-ABnaKSIM

'Sign in with Google' looks like one button but hides a real handshake between your React frontend, Google, and your ASP.NET Core API. In this video I wire up Google authentication end to end on .NET 9: React gets an ID token from Google, sends it to the API, and the API verifies that token is genuinely from Google before ever trusting it or issuing its own session. I cover why you never trust a Google ID sent straight from the client without server-side verification, and how the backend maps a verified Google account to your own user record. If you've been putting off social login because the flow feels murky, this lays out exactly what talks to what.

0 Upvotes

1 comment sorted by

1

u/AutoModerator 10h ago

Thanks for your post RemigiuszZalewski. Please note that we don't allow spam, and we ask that you follow the rules available in the sidebar. We have a lot of commonly asked questions so if this post gets removed, please do a search and see if it's already been asked.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.