Skip to content

Commit

Permalink
Default scope to empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
OllieJC committed Aug 3, 2023
1 parent 086b758 commit e9412ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -1013,7 +1013,7 @@ def auth_oidc():
# ==
# get tmp_scope
# ==
tmp_scope = None
tmp_scope = []
if client["ok"] and "scope_override" in client and client["scope_override"]:
tmp_scope = client["scope_override"]
else:
Expand All @@ -1023,7 +1023,7 @@ def auth_oidc():
tmp_scope = request.form["scope"]
elif "oidc_scope" in session:
tmp_scope = session["oidc_scope"]
if tmp_scope is not None:
if tmp_scope:
tmp_scope = sso_oidc.sanitise_scopes(tmp_scope)
session["oidc_scope"] = tmp_scope

Expand Down

0 comments on commit e9412ee

Please sign in to comment.