From ee843ccdeeb35c8b1b5e5ceddd130e1ddd93f2d4 Mon Sep 17 00:00:00 2001 From: iFargle Date: Sun, 19 Feb 2023 21:10:52 +0900 Subject: [PATCH] test --- Jenkinsfile | 2 +- server.py | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 959e8bd..12263ef 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ pipeline { timestamps() } stages { - stage ('Environment') { + stage ('ENV') { steps { sh 'printenv' script { BUILD_DATE = java.time.LocalDate.now() } diff --git a/server.py b/server.py index 69f74ba..5b9872b 100644 --- a/server.py +++ b/server.py @@ -23,8 +23,6 @@ if AUTH_TYPE.lower() == "oidc": # https://www.authelia.com/integration/openid-connect/introduction/ LOG.error("Loading OIDC libraries and configuring app...") - from flask_oidc import OpenIDConnect - DOMAIN_NAME = os.environ["DOMAIN_NAME"] BASE_PATH = os.environ["SCRIPT_NAME"] if os.environ["SCRIPT_NAME"] != "/" else "" OIDC_ISSUER = os.environ["OIDC_ISSUER"].replace('"','') @@ -58,7 +56,8 @@ if AUTH_TYPE.lower() == "oidc": 'OIDC_SCOPES': ['openid', 'email', 'profile'], 'OIDC_INTROSPECTION_AUTH_METHOD': 'client_secret_post' }) - + + from flask_oidc import OpenIDConnect oidc = OpenIDConnect(app)