Max Active User Limit (Concurrent License)

Trying to use the Open Source Airflow and extend it by adding a concurrent license to it. Anyone has seen a similar project implementation? or have any referneces?

FYI, I did manage to get the logic working for another Django project using Middleware, Flask for Airflow looks massive project.

What is Concurrent License:
Approach in which a limited number of licenses for a software application are shared among a larger number of users over time.