GlobalProtect-openconnect icon indicating copy to clipboard operation
GlobalProtect-openconnect copied to clipboard

Add User Agent Override to SAML Authentication

Open pturmel opened this issue 1 year ago • 1 comments

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.

pturmel avatar Oct 21 '23 19:10 pturmel

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.)

pturmel avatar Oct 21 '23 19:10 pturmel