© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•13mo ago•
31 replies
Espionage

✅ Identity Help

I have a React Frontend where I'm doing OAuth with Google, and I wanted to pass along this signin to my aspnetcore backend.

I've implemented identity and can see during the login process that my
HttpContext.User
HttpContext.User
has been set correctly with its basic claims.

In the logs at that time I see this:
info: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler[10]
      AuthenticationScheme: Identity.Application signed in.
info: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler[10]
      AuthenticationScheme: Identity.Application signed in.

I check my browser, I can see the cookie has been set succesfully, when I send a new request from the frontend to a test endpoint to verify this flow, I can see the cookie is being passed back to the API in the headers, shouldnt it just work at that point?

In the server logs I see the following:
dbug: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler[9]
      AuthenticationScheme: Cookies was not authenticated.
dbug: Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationHandler[9]
      AuthenticationScheme: Cookies was not authenticated.


Any ideas on where to go next?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

MVC Identity help
C#CC# / help
2y ago
Help scaffolding Identity?
C#CC# / help
3y ago
identity blazor
C#CC# / help
2y ago
Identity struggle
C#CC# / help
2y ago