17
0

need to base64-decode URLs from SAML REDIRECT too

This commit is contained in:
Daniel Lenski 2020-03-29 09:54:13 -07:00
parent 6ee0c49794
commit 4ee7744d7d

View File

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