This code is an example of how you could add the “better ASP.NET Core authorization” code into your own application.
Please read the article Adding the “better ASP.NET Core authorization” code into your app for a explanation of how you can do that.
This code is open-source (MIT licence).