I have two sites
first a .NET site that the saml works just fine
and after first login everything OK ....
second, I have an angular project that load before the login is accessing a web API to retrieve a data.
and I need the userName for that data
SAMLServiceProvider.ReceiveSSO(HttpContext.Current.Request, out isInResponseTo, out partnerIdP, out userName, out attributes, out targetUrl);
and getting this error
ComponentSpace.SAML2.Exceptions.SAMLEnvironmentException: 'There is no HTTP session state as ASP.NET session cookies are not enabled.'
which I can understand cause there isn't a session state in API
So, how can I get the user Name within the web API?