]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
pretend to support external browser SAML
authorDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Mar 2022 10:43:42 +0000 (10:43 +0000)
committerDavid Woodhouse <dwmw2@infradead.org>
Tue, 22 Mar 2022 10:43:42 +0000 (10:43 +0000)
Actually this might be easier than the internal one

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
auth.c

diff --git a/auth.c b/auth.c
index ad07b2a55e89e879ba806ade81656fc00b99c662..5a88145b21ed4a2a3ac980337eb3f870c5e533f3 100644 (file)
--- a/auth.c
+++ b/auth.c
@@ -809,6 +809,10 @@ static xmlDocPtr xmlpost_new_query(struct openconnect_info *vpninfo, const char
        if (!node)
                goto bad;
 
+       node = xmlNewTextChild(capabilities, NULL, XCAST("auth-method"), XCAST("single-sign-on-external-browser"));
+       if (!node)
+               goto bad;
+
        *rootp = root;
        return doc;