apply authentication to the whole app, track exceptions

This commit is contained in:
dandds
2018-08-06 14:06:06 -04:00
parent 0a754d72a3
commit d693db7dbb
8 changed files with 33 additions and 39 deletions

View File

@@ -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)