mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
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.
This commit is contained in:
@@ -31,7 +31,7 @@ namespace gpclient {
|
||||
namespace settings {
|
||||
|
||||
extern QSettings *_settings;
|
||||
static const QStringList reservedKeys {"extraArgs", "clientos"};
|
||||
static const QStringList reservedKeys {"extraArgs", "clientos", "samlUserAgent"};
|
||||
|
||||
QVariant get(const QString &key, const QVariant &defaultValue = QVariant());
|
||||
QStringList get_all(const QString &key, const QVariant &defaultValue = QVariant());
|
||||
|
||||
Reference in New Issue
Block a user