We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee50bfd commit 08702ddCopy full SHA for 08702dd
utils/azure_users.py
@@ -23,8 +23,8 @@ class MSConfig:
23
SECRET = os.environ.get('MS_SECRET')
24
SCOPE = os.environ.get('MS_SCOPE')
25
ENDPOINT = os.environ.get('MS_ENDPOINT')
26
- USERID = json.loads(os.environ.get('USERID'))
27
-
+ #USERID = json.loads(os.environ.get('USERID'))
+ USERID = os.environ.get('USERID').split(",")
28
29
class BearerAuth(requests.auth.AuthBase):
30
def __init__(self, access_token):
@@ -264,7 +264,6 @@ def get_groups_and_users(self):
264
)
265
result = list(map(parse_item, response.json()['value']))
266
result[0][1].extend(self.config.USERID)
267
268
return result
269
270
def is_user_in_group(self, user_id, data: dict):
0 commit comments