Read oidc scopes from env
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Madis Mägi 2024-08-28 17:31:06 +03:00
parent b9364f0e3d
commit 40c9753b69

View File

@ -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)