The `macrostrat.auth_system.core` library integrates the authentication models in this codebase: https://github.com/UW-Macrostrat/python-libraries/pull/34. This has now been published to PyPI and can be referenced instead of the code here.