GlobalProtect-openconnect
GlobalProtect-openconnect copied to clipboard
Add User Agent Override to SAML Authentication
Adds "samlUserAgent" key to settings dialog. If left blank, prior behavior is unchanged.
If provided, the WebView Profile is adjusted with ::setHttpUserAgent() before opening the portal's SAML page.
Ran into a VPN that cross-checked the provided OS and OS version against the web browser user agent. (!!)
This fixed it. I did have a connection hiccup where SAML succeeded at the IDP, but gpclient reported a failure. But then auto-connected immediately upon retry. I'm not sure if this patch is missing some nuance. (I'm not an experienced Qt5 developer.)