We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 88027bb commit 29a4a2aCopy full SHA for 29a4a2a
gp_saml_gui.py
@@ -29,6 +29,8 @@
29
import xml.etree.ElementTree as ET
30
import ssl
31
import tempfile
32
+import pathlib
33
+import os
34
35
from operator import setitem
36
from os import path, dup2, execvp, environ
@@ -380,7 +382,9 @@ def main(args = None):
380
382
print("Got SAML %s, opening external browser for debugging..." % sam, file=stderr)
381
383
import webbrowser
384
if html:
- uri = 'data:text/html;base64,' + b2a_base64(html.encode()).decode()
385
+ with tempfile.NamedTemporaryFile(suffix='.html', mode='w', delete=False) as tf:
386
+ tf.write(html)
387
+ uri = pathlib.Path(tf.name).as_uri()
388
webbrowser.open(uri)
389
raise SystemExit
390
0 commit comments