Read oidc scopes from env
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
b9364f0e3d
commit
40c9753b69
@ -40,7 +40,7 @@ def do_login():
|
|||||||
"client_id": os.getenv("OIDC_CLIENT_ID"),
|
"client_id": os.getenv("OIDC_CLIENT_ID"),
|
||||||
"redirect_uri": url_for("oidc.login_callback", _external=True, _scheme='https'),
|
"redirect_uri": url_for("oidc.login_callback", _external=True, _scheme='https'),
|
||||||
"response_type": "code",
|
"response_type": "code",
|
||||||
"scope": "openid profile",
|
"scope": os.getenv("OIDC_AVAILABLE_SCOPES").replace(",", " "),
|
||||||
})
|
})
|
||||||
return redirect(url)
|
return redirect(url)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user