Recently our team ran into a problem with getting the URL path in an ASP.NET Core MVC project. We were getting different results running locally versus deployed to our QA environment. Enter HttpRequest.PathBase
.
Recently our team ran into a problem with getting the URL path in an ASP.NET Core MVC project. We were getting different results running locally versus deployed to our QA environment. Enter HttpRequest.PathBase
.
The GenericPrincipal constructor requires an array of roles for IsInRole
to work. If null is passed in for that, then it will always return false, even if role claims are present on its identities.