]> code.communitydata.science - nu-vpn-proxy.git/blobdiff - test-globalprotect-login.py
include clientos in output command-lines and environment variables
[nu-vpn-proxy.git] / test-globalprotect-login.py
index 81ae8b753b87da95630dd2136b51a494f8d7be63..4c325b2b2015fbc6cfb55c0860333934aa05a9b8 100755 (executable)
@@ -114,10 +114,10 @@ Extracted connection cookie from <jnlp>. Use this to connect:
 elif xml is not None and xml.tag == 'prelogin-response' and None not in (xml.find('saml-auth-method'), xml.find('saml-request')):
     import webbrowser
     sam = xml.find('saml-auth-method').text
-    sr = xml.find('saml-request').text
+    sr = a2b_base64(xml.find('saml-request').text)
     if sam == 'POST':
         with NamedTemporaryFile(delete=False, suffix='.html') as tf:
-            tf.write(a2b_base64(sr))
+            tf.write(sr)
         if args.browse:
             print("Got SAML POST, browsing to %s" % tf.name)
             webbrowser.open('file://' + tf.name)

Community Data Science Collective || Want to submit a patch?