Skip to content

Commit

Permalink
fix: membership_id get from class instead of dict
Browse files Browse the repository at this point in the history
  • Loading branch information
EreminAnton committed Sep 6, 2024
1 parent 79f45e1 commit 22a09fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sso.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ def is_user_in_group(identity_store_id: str, group_id: str, sso_user_id: str, id
for member in group_memberships:
if member.user_principal_id == sso_user_id: # type: ignore # noqa: PGH003
logger.info("User is in the group", extra={"group": member})
return member["MembershipId"] # type: ignore # noqa: PGH003 (ignoring this because we checked if user is in the group)
return member.membership_id
return None


Expand Down

0 comments on commit 22a09fd

Please sign in to comment.