❔ Issue with Google authentication in dotnet 7 react app [SOLVED]
Hi! I am trying to use google authentication with dotnet 7 react app. I followed the instructions here:
https://learn.microsoft.com/en-us/aspnet/core/security/authentication/social/google-logins?view=aspnetcore-7.0
And when I go to the register page, and click on register, i am presented with the google login. After selecting the user, it doesn't bring me back to the main page, and it doesn't seem to be authenticated, but no error message is displayed. I do see the following in the browser console:
No routes matched location "/signin-google?state=CfDJ8CVEZd3o.....
Does anyone know what could the problem be?
Google external login setup in ASP.NET Core
This tutorial demonstrates the integration of Google account user authentication into an existing ASP.NET Core app.
2 Replies
Resolved. Found the answer here: https://stackoverflow.com/questions/73952211/asp-net-react-project-template-google-authentication-not-working#73978435
Stack Overflow
Asp.Net React Project Template Google Authentication Not Working
The project I'm working with is literally an asp.net react project template including Identity Framework that comes right out-of-box.
I followed the example as specified here: https://learn.microso...
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.