]> code.communitydata.science - nu-vpn-proxy.git/commitdiff
need to base64-decode URLs from SAML REDIRECT too
authorDaniel Lenski <dlenski@gmail.com>
Sun, 29 Mar 2020 16:54:13 +0000 (09:54 -0700)
committerDaniel Lenski <dlenski@gmail.com>
Sun, 29 Mar 2020 16:54:24 +0000 (09:54 -0700)
test-globalprotect-login.py

index 4c325b2b2015fbc6cfb55c0860333934aa05a9b8..f964a83f396cbe8509fd8dbe766a26a6af08f99b 100755 (executable)
@@ -124,6 +124,7 @@ elif xml is not None and xml.tag == 'prelogin-response' and None not in (xml.fin
         else:
             print("Got SAML POST, saved to:\n\t%s" % tf.name)
     elif sam == 'REDIRECT':
+        sr = a2b_base64(sr)
         if args.browse:
             print("Got SAML REDIRECT, browsing to %s" % sr)
             webbrowser.open(sr)

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