diff options
author | Frederick Muriuki Muriithi | 2024-07-25 16:54:48 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-07-26 16:45:32 -0500 |
commit | 729703972f67cd8a61460d275313ad7c55b019b3 (patch) | |
tree | 17c93a98ad30d762876cd3c25a4b58f690924e36 /uploader/__init__.py | |
parent | 365f360f0e79c761bd6fb9c26009b4f782f752eb (diff) | |
download | gn-uploader-729703972f67cd8a61460d275313ad7c55b019b3.tar.gz |
Provide UI for enabling login to the application.
Diffstat (limited to 'uploader/__init__.py')
-rw-r--r-- | uploader/__init__.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/uploader/__init__.py b/uploader/__init__.py index a3b36e7..e4b5b32 100644 --- a/uploader/__init__.py +++ b/uploader/__init__.py @@ -6,6 +6,8 @@ from pathlib import Path from flask import Flask, request from flask_session import Session +from uploader.oauth2.client import authserver_authorise_uri + from .entry import entrybp from .upload import upload from .parse import parsebp @@ -41,6 +43,9 @@ def create_app(): # setup jinja2 symbols app.add_template_global(lambda : request.url, name="request_url") + app.add_template_global(authserver_authorise_uri) + app.add_template_global(lambda: app.config["GN2_SERVER_URL"], + name="gn2server_uri") Session(app) |