Add a registration command to allow an application registration to connect to the Onefuzz (#2571)

This commit is contained in:
Cheick Keita
2022-11-03 09:41:38 -07:00
committed by GitHub
parent 6cc7caf67b
commit fb8a4e36f1
2 changed files with 98 additions and 26 deletions

View File

@ -383,7 +383,7 @@ class Client:
},
{
"allowedMemberTypes": ["Application"],
"description": "Allow access from a lab machine.",
"description": "Allow access from a managed node.",
"displayName": OnefuzzAppRole.ManagedNode.value,
"id": str(uuid.uuid4()),
"isEnabled": True,
@ -397,6 +397,14 @@ class Client:
"isEnabled": True,
"value": OnefuzzAppRole.UserAssignment.value,
},
{
"allowedMemberTypes": ["Application"],
"description": "Allow access from an unmanaged node.",
"displayName": OnefuzzAppRole.UnmanagedNode.value,
"id": str(uuid.uuid4()),
"isEnabled": True,
"value": OnefuzzAppRole.UnmanagedNode.value,
},
]
if not app: