I am currently facing an issue in my SAML implementation using ASP.NET Core 3.1. The SAML login works perfectly in both Chrome and Firefox, but it tells me the form submission is insecure if i try to do it within Safari.
Even when pressing continue it refuses to send the SAML Request to the server and i am getting the following error on the backend.
Sustainsys.Saml2.Exceptions.NoSamlResponseFoundException: No Saml2 Response found in the http request.
at Sustainsys.Saml2.WebSso.AcsCommand.Run(HttpRequestData request, IOptions options)
at Sustainsys.Saml2.AspNetCore2.Saml2Handler.HandleRequestAsync()
at Microsoft.AspNetCore.Authentication.AuthenticationMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Builder.RouterMiddleware.Invoke(HttpContext httpContext)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Session.SessionMiddleware.Invoke(HttpContext context)
at Microsoft.AspNetCore.Diagnostics.ExceptionHandlerMiddleware.<Invoke>g__Awaited|6_0(ExceptionHandlerMiddleware middleware, HttpContext context, Task task)
What i tried:
Setting the SAMESITE Cookie policy according based on this article:
https://devblogs.microsoft.com/aspnet/upcoming-samesite-cookie-changes-in-asp-net-and-asp-net-core/
Even though the Safari SAMESITE issue should be fixed in Mojave & IOS 10.13 i tried adding it to the exception rule but it did not fix my problem.