Skip to content

Commit

Permalink
added new error code
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTechromancer committed Dec 5, 2022
1 parent 5803f6f commit 70aca7b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions trevorspray/lib/sprayers/msol.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def check_response(self, response):
valid = True
msg = f'AADSTS90072: Valid credential, but not for this tenant.'

elif 'AADSTS530031' in error:
valid = True
msg = f'AADSTS530031: Valid credential, but access policy does not allow token issuance.'

elif 'AADSTS50034' in error:
exists = False
msg = f'AADSTS50034: User does not exist.'
Expand Down

0 comments on commit 70aca7b

Please sign in to comment.