Skip to content

Commit

Permalink
Add hotfix for authz api bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiefMaster committed Dec 19, 2024
1 parent 27eacb6 commit 5b8fa26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion flask_multipass_cern.py
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,8 @@ def _fetch_identity_group_names(self, identifier):
return set()
resp.raise_for_status()
results = resp.json()['data']
groups = {res['groupIdentifier'] for res in results}
# authz api bug: filter out nonsense group names looking like `somegroup|someuuid`
groups = {res['groupIdentifier'] for res in results if '|' not in res['groupIdentifier']}
if self.settings['cern_users_group'] and any(g == self.settings['cern_users_group'] for g in groups):
groups.add('CERN Users')
return groups
Expand Down

0 comments on commit 5b8fa26

Please sign in to comment.