DuendeSoftware / Samples

Samples for our Products
Other
232 stars 270 forks source link

Google Auth : The oauth state was missing or invalid. #48

Closed romantitov closed 2 years ago

romantitov commented 2 years ago

I use 3_AspNetCoreAndApis. I've added my ClientId and ClientSecret, run the project and open /signin-google The browser shows me the following error page: image

The same error I see for V5 and V6.

Is it something I'm doing wrong, or Google authentication just doesn't work?

brockallen commented 2 years ago

It's working for me locally, so not sure, sorry. This could be very environmental (wrong redirect uri, wrong host configured). I'd suggest getting google to work in a stand alone ASP.NET Core sample, then compare that to what you have different in the quickstart.

brockallen commented 2 years ago

IIRC, we closed this issue on the QS repo -- it was due to the missing google config in the code/config file.