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)