The requirements are:
- Use http://localhost and then redirect to complete OAuth process and redirect back.
- Use Chrome with default settings. I know I can just change some flags to fix this.
- Use the .NET Core library for Auth Code Grant. I also know I can write my own code for this.
You can see all our code in this repo and here is a direct link to startup.cs.
The cookie related code in there is this:
services.Configure<CookiePolicyOptions>(options =>
{
// This lambda determines whether user consent for non-essential cookies is needed for a given request.
options.CheckConsentNeeded = context => true;
options.MinimumSameSitePolicy = SameSiteMode.None;
});
I tried to either remove the above code or change it in different ways - no go. I also read this article and tried to use the code that was offered in there - didn't work. I also tried all of the different solutions offered on this thread. Again, nothing seemed to work. Is there any option to still use http and samesite cookies with Chrome and prevent .NET Core from giving me this error?