Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
A

authz-custom-middleware

> 安全
Open source

Accompanying repo for my blog post series on ASP.NET Core Authorization.

99 stars0 likes0 views
WebsiteGitHub

About

Accompanying repo for my blog post series on ASP.NET Core Authorization.

Authorization in ASP.NET Core

This repo contains the source code for a series of blog posts I'm writing about authorization in ASP.NET Core. You can check all the posts here: Authorization in ASP.NET Core - Series.

Blog posts and code - how to follow

Since there's a lot to cover, this repo is going to be updated incrementally, together with each post.

To make it practical for you to both read the post and follow through with the code, there will be a branch for each post I publish. This way you can see the snapshot of how it looked like when I published the post.

The main branch will contain the latest state always.

Running the app:

The app uses a SQL Server database to store its data. At the root of the repo, you can find a docker-compose.yml which will start both SQL Server and IdentityServer for you.

After executing docker-compose up, you can start debugging the API using your preferred IDE. The API project will automatically create and migrate the database using EF Migrations.

The initial migration will seed the database with users and permissions so you don't have to do anything to get started.

The users you can use to login are: (If you ever used IdentityServer you might be familiar with them :smile:).

User Password
bob bob
alice alice

If all worked you should see the Swagger page and should be able to authenticate and call the endpoint.

Requisites

  • .NET SDK 6.*
  • Docker/Compose (only if you want to run the app locally)

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

C#aspnetcoreauthorizationdotnet

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 18, 2026
Category安全
PricingOpen source

> Related tools

O
OWASP ZAP
开源 Web 应用安全扫描器
O
owasp-wstg-tracker
Simple web app to track OWASP WSTG security testing progress
H
homebridge-mi-gateway-security
XiaoMi Gateway Security plugin for HomeBridge.