Skip to content

Commit d4e60bd

Browse files
committed
Update estsauthcookietoaccesstoken and pics
1 parent f16bcdb commit d4e60bd

File tree

6 files changed

+11
-1
lines changed

6 files changed

+11
-1
lines changed

.github/displayavpolicyrules.png

-22.9 KB
Loading

.github/estsauthcookie.png

-18.4 KB
Loading

.github/getgraphtokens.png

-23.4 KB
Loading

.github/getuser.png

-2.02 KB
Loading
-4.96 KB
Loading

graphpython.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2028,6 +2028,16 @@ def main():
20282028
"scope": "openid"
20292029
}
20302030

2031+
if args.use_cae:
2032+
claims = json.dumps({
2033+
"access_token": {
2034+
"xms_cc": {
2035+
"values": ["cp1"]
2036+
}
2037+
}
2038+
}, separators=(',', ':'))
2039+
body["claims"] = claims
2040+
20312041
token_response = session.post(token_url, headers=headers, data=body)
20322042
token_response_json = token_response.json()
20332043
access_token = token_response_json.get('access_token')
@@ -3403,7 +3413,7 @@ def parse_roleids(content):
34033413
#print_green(f"[+] Role Type: {role_type}") # can only be application for appRoleAssignments, delegated role types use oauth2PermissionGrants
34043414
#print_green(f"[+] Admin Consent Required: {consent_required}") # admin consent required for all app graph perms
34053415
else:
3406-
print_red(f"[!] Role information not found for App Role ID: {app_role_id}")
3416+
print_red(f"[-] Role information not found for App Role ID: {app_role_id}")
34073417
print_green(f"[+] Resource: {assignment.get('resourceDisplayName', 'N/A')}")
34083418
print("---")
34093419
else:

0 commit comments

Comments
 (0)