Jul 03, 2019 02:24 PM|mavendano|LINK
Thanks for the reply! Here is my startup.cs configuration.
.AddCookie(CookieAuthenticationDefaults.AuthenticationScheme, options =>
options.Cookie.Name = "PangaeaService.Identity";
options.Cookie.Expiration = TimeSpan.FromDays(1);
// Add SAML SSO Service
options.SerializerSettings.NullValueHandling = NullValueHandling.Ignore;
By Anonymous user, I meant when the login request with the cookie gets sent in and a new httpcontext is created, the User sending the request does not have any claims associated with them, or their identity.
(May need to open the image in a new tabl for it to show, not sure).
I had the AddAuthentication after AddMVC(), but still no luck after moving the AddMVC after AddAuthentication.
Edit: FIXED IT!
I missed the app.UseAuthentication() line in startup.cs!! Thank you so much for the help!