From 40c9753b69ef91254c1d2f0a64252dd5ab9ed226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Madis=20M=C3=A4gi?= Date: Wed, 28 Aug 2024 17:31:06 +0300 Subject: [PATCH] Read oidc scopes from env --- inventory-app/oidc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inventory-app/oidc.py b/inventory-app/oidc.py index d816e5d..a8eb7fa 100644 --- a/inventory-app/oidc.py +++ b/inventory-app/oidc.py @@ -40,7 +40,7 @@ def do_login(): "client_id": os.getenv("OIDC_CLIENT_ID"), "redirect_uri": url_for("oidc.login_callback", _external=True, _scheme='https'), "response_type": "code", - "scope": "openid profile", + "scope": os.getenv("OIDC_AVAILABLE_SCOPES").replace(",", " "), }) return redirect(url)