Practical Permissions-based Authorization in ASP.NET Core MVC

Resource authorization implemented as TypeFilterAttribute-based attributes are an ideal way to implement permissions-based authorization in ASP.NET Core MVC.

Ben Collins

6 minute read

The New Identity framework As anyone following ASP.NET’s development in the last two years knows, ASP.NET Core has been released and there are a lot of changes. Gone are the days of IIS modules and handlers and the traditional ASP.NET pipeline. Instead, now we have a composable pipeline of delegates. Gone also are System.Web and much of the monolithic frameworks that often were used in web applications. The Identity framework is one that has also changed.

an integration testing nightmare

Using NightmareJS, Node 6, and Mocha to do headless integration testing.

Ben Collins

6 minute read

Motivation Testing is a goal of many software teams. It’s widely considered “virtuous” in software engineering to build tests along with an application or library that effectively describes the desired behavior, and then quantitatively scores whether or not the software achieves its stated goals (the tests are the stated goals). This is commonly referred to test-driven development, or TDD. There are a couple of ways to go about writing tests, and one of the most widely discussed ways of testing is to write “unit tests” which by definition only test a single thing in isolation.

introducing salty politics

A Christian commitment to a better kind of politics

Ben Collins

1 minute read

I’d like to call some attention to another blogging project I am trying to take on. I call it Salty Politics. I’ve pushed the publish button on the first post there, called Salty Politics: An Introcution. Writing about politics is tricky enough on its own - but writing about them and trying to do it from a Christian perspective is doubly hard. The older generations used to have sayings along the lines of “never discuss politics or religion in polite company”, and there is wisdom in that.