I've implemented IdentityServer4. The application is running ASP.NET Core. The hosting environment is on IIS. I'm using Shibboleth to perform pre-authentication to the site. This populates a number of server variables in IIS. (We cannot use HTTP Headers in our environment, everything must be done using ServerVariables)
I want to retrieve either server variable 'AUTH_USER' or 'REMOTE_USER'.
In legacy ASP or ASP.NET this was as simple as calling Request.ServerVariable("AUTH_USER"). This has changed in ASP.NET Core.
I've tried ClaimsPricipal -> User.Identity.Name, (User name is empty, IsAuthenticated is false)
I've confirmed the server variables are in fact set.
This question is similar to this question but doesn't answer the question