Use popup browser for AAD auth in SDL client

Optionally build the SDL client with Qt WebEngine to create a popup
browser for authentication to AAD. Also change the URL output on the
command line to use the "nativeclient" redirect for easier copy/pasting
of the authorization code.
This commit is contained in:
fifthdegree
2023-05-17 13:25:37 -04:00
committed by akallabeth
parent ba7fdcb5f0
commit 449b96adb2
11 changed files with 225 additions and 45 deletions

View File

@@ -157,7 +157,8 @@ extern "C"
FREERDP_API int client_cli_logon_error_info(freerdp* instance, UINT32 data, UINT32 type);
FREERDP_API BOOL client_cli_get_aad_auth_code(freerdp* instance, const char* hostname,
char** code);
char** code, const char** client_id,
const char** redirect_uri);
FREERDP_API void
freerdp_client_OnChannelConnectedEventHandler(void* context,

View File

@@ -126,7 +126,8 @@ extern "C"
char** domain, rdp_auth_reason reason);
typedef BOOL (*pChooseSmartcard)(freerdp* instance, SmartcardCertInfo** cert_list, DWORD count,
DWORD* choice, BOOL gateway);
typedef BOOL (*pGetAadAuthCode)(freerdp* instance, const char* hostname, char** code);
typedef BOOL (*pGetAadAuthCode)(freerdp* instance, const char* hostname, char** code,
const char** client_id, const char** redirect_uri);
/** @brief Callback used if user interaction is required to accept
* an unknown certificate.