apply authentication to the whole app, track exceptions
This commit is contained in:
@@ -15,6 +15,7 @@ from atst.routes.workspaces import bp as workspace_routes
|
||||
from atst.routes.requests import requests_bp
|
||||
from atst.routes.dev import bp as dev_routes
|
||||
from atst.domain.authnid.crl.validator import Validator
|
||||
from atst.domain.auth import apply_authentication
|
||||
|
||||
|
||||
ENV = os.getenv("FLASK_ENV", "dev")
|
||||
@@ -47,6 +48,8 @@ def make_app(config):
|
||||
if ENV != "production":
|
||||
app.register_blueprint(dev_routes)
|
||||
|
||||
apply_authentication(app)
|
||||
|
||||
return app
|
||||
|
||||
|
||||
@@ -136,3 +139,4 @@ def make_crl_validator(app):
|
||||
)
|
||||
for e in app.crl_validator.errors:
|
||||
app.logger.error(e)
|
||||
|
||||
|
Reference in New Issue
Block a user