From 005de8a5ec09e45ada9f74a967cc285f6192a895 Mon Sep 17 00:00:00 2001 From: jasquat <2487833+jasquat@users.noreply.github.com> Date: Wed, 8 Jan 2025 17:22:03 -0500 Subject: [PATCH] do not automatically add groups to scope if using OPENID to handle groups w/ burnettk (#2212) Co-authored-by: jasquat --- .../src/spiffworkflow_backend/config/__init__.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py b/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py index 8c6fb649b..46e830e77 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/config/__init__.py @@ -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