© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
17 replies
nephrotoxin

Implementing Google OAuth throws an error after logging in

I'm losing my mind over this, I'm sure it's a minor fix but I can't seem to get it working, I've setup the Google OAuth controller, and everything seems to be working at glance, the application builds, the url gets me to google, i can select my account, but once it tries to call the callback, it says the oauth state is missing or invalid

https://github.com/lumijiez/raven/blob/dev/auth/server/Raven/Raven.Auth/Controllers/GoogleOAuthController.cs

https://github.com/lumijiez/raven/blob/dev/auth/server/Raven/Raven.Auth/Startup.cs

here are the relevant files
GitHub
raven/server/Raven/Raven.Auth/Controllers/GoogleOAuthController.cs ...
Contribute to lumijiez/raven development by creating an account on GitHub.
raven/server/Raven/Raven.Auth/Controllers/GoogleOAuthController.cs ...
GitHub
raven/server/Raven/Raven.Auth/Startup.cs at dev/auth · lumijiez/raven
Contribute to lumijiez/raven development by creating an account on GitHub.
raven/server/Raven/Raven.Auth/Startup.cs at dev/auth · lumijiez/raven
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

IdentityServer4, oauth and re-logging in
C#CC# / help
15mo ago
Google Auth invalid OAuth state
C#CC# / help
2y ago
Adding Google/Oauth to Web API + SPA
C#CC# / help
2y ago
❔ ✅ ASP.NET Core - Implementing an API in CQRS pattern
C#CC# / help
3y ago