mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 00:14:11 +09:00
Merge pull request #11873 from akallabeth/azure
[core,arm] extract redirected username
This commit is contained in:
@@ -896,6 +896,14 @@ static BOOL arm_fill_gateway_parameters(rdpArm* arm, const char* message, size_t
|
||||
}
|
||||
}
|
||||
|
||||
WINPR_JSON* userNameNode = WINPR_JSON_GetObjectItem(json, "redirectedUserName");
|
||||
if (userNameNode)
|
||||
{
|
||||
const char* userName = WINPR_JSON_GetStringValue(userNameNode);
|
||||
if (!freerdp_settings_set_string(settings, FreeRDP_Username, userName))
|
||||
goto fail;
|
||||
}
|
||||
|
||||
WINPR_JSON* azureMeta = WINPR_JSON_GetObjectItem(json, "azureInstanceNetworkMetadata");
|
||||
if (azureMeta && WINPR_JSON_IsString(azureMeta))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user