diff options
Diffstat (limited to 'gn_auth/__init__.py')
-rw-r--r-- | gn_auth/__init__.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gn_auth/__init__.py b/gn_auth/__init__.py index 4ef2892..7d9228d 100644 --- a/gn_auth/__init__.py +++ b/gn_auth/__init__.py @@ -6,6 +6,11 @@ from flask import Flask from . import settings +from gn_auth.auth import oauth2 +from gn_auth.misc_views import misc + +from gn_auth.auth.authentication.oauth2.server import setup_oauth2_server + class ConfigurationError(Exception): """Raised in case of a configuration error.""" @@ -61,5 +66,10 @@ def create_app(config: dict = {}) -> Flask: check_mandatory_settings(app) setup_logging_handlers(app) + setup_oauth2_server(app) + + ## Blueprints + app.register_blueprint(misc, url_prefix="/") + app.register_blueprint(oauth2, url_prefix="/auth") return app |