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.
We’re giving Auth0 a test run at work, and I was having the hardest time getting a proof-of-concept .net core API up and running with authorization in the SwaggerUI. This article got met going in the correct direction.