mirror of
https://github.com/sartography/spiff-arena.git
synced 2025-01-30 11:15:02 +00:00
do not automatically add groups to scope if using OPENID to handle groups w/ burnettk (#2212)
Co-authored-by: jasquat <jasquat@users.noreply.github.com>
This commit is contained in:
parent
cffaa09ba0
commit
005de8a5ec
@ -118,12 +118,6 @@ def _set_up_open_id_scopes(app: Flask) -> None:
|
||||
)
|
||||
if os.environ.get("SPIFFWORKFLOW_BACKEND_OPEN_ID_SCOPES") is None:
|
||||
scopes = app.config["SPIFFWORKFLOW_BACKEND_OPENID_SCOPE"].split(" ")
|
||||
if (
|
||||
os.environ.get("SPIFFWORKFLOW_BACKEND_OPEN_ID_SCOPES") is None
|
||||
and app.config["SPIFFWORKFLOW_BACKEND_OPEN_ID_IS_AUTHORITY_FOR_USER_GROUPS"]
|
||||
and "groups" not in scopes
|
||||
):
|
||||
scopes.append("groups")
|
||||
|
||||
app.config["SPIFFWORKFLOW_BACKEND_OPEN_ID_SCOPES"] = scopes
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user