cli parameter /gateway:bearer:bearertoken

This commit is contained in:
Michael Saxl 2023-06-14 18:55:42 +02:00 committed by akallabeth
parent 6478edda5b
commit 9a5bedd8be
1 changed files with 9 additions and 0 deletions

View File

@ -2540,6 +2540,15 @@ static BOOL parse_gateway_options(rdpSettings* settings, const COMMAND_LINE_ARGU
validOption = TRUE;
allowHttpOpts = FALSE;
}
const char* bearer = option_starts_with("bearer:", argval);
if (bearer)
{
if (!freerdp_settings_set_string(settings, FreeRDP_GatewayHttpExtAuthBearer, bearer))
goto fail;
validOption = TRUE;
allowHttpOpts = FALSE;
}
const char* um = option_starts_with("usage-method:", argval);
if (um)