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:
Philip J. Turmel
2023-10-21 15:23:59 -04:00
parent 705b03c0bb
commit a869a3ac9c
6 changed files with 37 additions and 8 deletions

View File

@@ -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());