C#C
C#12mo ago
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 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.

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.


Any ideas on where to go next?
Was this page helpful?