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`.

https://orangegnome.com/posts/3099/getting-the-url-path-in-aspnet-core

#Aspnet #Iis #WebDevelopment #NetMvc #AspnetCore #C #Httprequest

Getting the URL Path in ASP.NET Core | Brent Lineberry

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`.

Orange Gnome

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.

https://orangegnome.com/posts/2796/fixing-isinrole-always-false-in-a-net-mvc-project-without-microsoft-identity

#Aspnet #NetMvc #RolebasedAuthorization

Fixing IsInRole Always False in a .NET MVC Project without Microsoft Identity | Brent Lineberry

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.

Orange Gnome