Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: TT-393 change user id variable to list
  • Loading branch information
dsgarcia8 committed Nov 8, 2021
commit ee50bfd0f0ac6f4990d5a5c549b4c9ef9233cbc2
4 changes: 2 additions & 2 deletions utils/azure_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class MSConfig:
SECRET = os.environ.get('MS_SECRET')
SCOPE = os.environ.get('MS_SCOPE')
ENDPOINT = os.environ.get('MS_ENDPOINT')
USERID = os.environ.get('USERID')
USERID = json.loads(os.environ.get('USERID'))


class BearerAuth(requests.auth.AuthBase):
Expand Down Expand Up @@ -263,7 +263,7 @@ def get_groups_and_users(self):
[member['objectId'] for member in item['members']],
)
result = list(map(parse_item, response.json()['value']))
result[0][1].append(self.config.USERID)
result[0][1].extend(self.config.USERID)

return result

Expand Down