oidc working again (getting less info to limit cookie size)

This commit is contained in:
Tobias Kurze
2020-07-28 15:09:08 +02:00
parent de398d189a
commit cc334f1727
8 changed files with 40 additions and 18 deletions

View File

@@ -10,6 +10,7 @@ from flask_pyoidc.user_session import UserSession
from backend import app
from backend.auth import oidc_auth
from backend.auth.oidc_config import PROVIDER_NAME
fe_path = os.path.abspath(os.path.join(app.root_path, os.pardir, os.pardir, "frontend", "dist"))
if not os.path.exists(fe_path) or not os.path.exists(os.path.join(fe_path, "index.html")):
@@ -37,7 +38,7 @@ def send_img(path):
@fe_bp.route('/test')
@oidc_auth.oidc_auth()
@oidc_auth.oidc_auth(provider_name=PROVIDER_NAME)
def test_oidc():
user_session = UserSession(flask.session)
access_token = user_session.access_token