From: Daniel Lenski Date: Sun, 29 Mar 2020 16:54:13 +0000 (-0700) Subject: need to base64-decode URLs from SAML REDIRECT too X-Git-Url: https://code.communitydata.science/nu-vpn-proxy.git/commitdiff_plain/4ee7744d7d0b4c28ab90f243ec93b1d82866dcdd?ds=sidebyside;hp=6ee0c497943d70259d6ded703665b557841f4904 need to base64-decode URLs from SAML REDIRECT too --- diff --git a/test-globalprotect-login.py b/test-globalprotect-login.py index 4c325b2..f964a83 100755 --- a/test-globalprotect-login.py +++ b/test-globalprotect-login.py @@ -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)