A rich set of internal admin tools helps with customer support, system monitoring and visibility. We’ll start our suite of tools with a user admin page to list all users in the system. This page is access controlled using a simple filter attribute. While we’re here, we might as well let users sign out too.
The actual sign up logic is just a boring form submit and user data written to Redis. Because user CRUD was covered previously, we’ll skip it and jump to other interesting bits we ran into.
The custom attribute just concerns itself with determining whether the currently authenticated user is an administrator:
Sign Out a User and Clear Session
We have forgotten about sign out in the midst of all this signing in and signing up. A user should be de-authorized and their session cleared when they sign out. We settle for clearing all data contained within the user’s session because ASP.NET Core no longer has a way to abandon or destroy a session:
The easiest way to monitor your web performance. Request Metrics records how real users
experience your website and shows you simplified metrics and alerting. And at a price that's easy
on your budget.