Commit 0cc012f5 authored by marcus-tun's avatar marcus-tun
Browse files

Now the encrypted and the unencrypted assertion can be downloaded from the SSO page

parent 037cf237
...@@ -47,7 +47,7 @@ $.get( from, function( assertion, stat ) { ...@@ -47,7 +47,7 @@ $.get( from, function( assertion, stat ) {
// replace content in the template // replace content in the template
buf = data.split("url="); buf = data.split("url=");
url = buf[1]; url = buf[1];
$("#url2").html('<a href="'+url+'">here</a>'); $("#url2").html('<a href="'+url+'">encrypted assertion</a>');
$("#url").text(url+"?k="+key); $("#url").text(url+"?k="+key);
$("#stat_post").text(stat) $("#stat_post").text(stat)
}) })
......
...@@ -62,11 +62,12 @@ def handler(req): ...@@ -62,11 +62,12 @@ def handler(req):
<br/><p> You can now use this URL as a temporary password:<br/> <br/><p> You can now use this URL as a temporary password:<br/>
<b id="url"> Wait </b></p> <b id="url"> Wait </b></p>
<p> Or download the assertion <a id="url2" href="" > Wait for link </a> and save it to /tmp/samlup_uXXXX</p> <p> You can also download the <a id="url2" href="" > Wait for link </a> and save it to /tmp/samlup_uXXXX.encr</p>
<p> You can also download the <a href="/sd/assertion.py">unencrypted assertion</a> and save it to /tmp/samlup_uXXXX</p>
<p> Replace XXXX with the UID on your client system</p>
<script src="js-new.js"></script> <script src="js-new.js"></script>
<head> </head> <head> </head>
<body> you can also try /sd/assertion.py </body> <body> </body>
</html> ''') </html> ''')
return apache.OK return apache.OK
...@@ -76,7 +77,7 @@ def handler(req): ...@@ -76,7 +77,7 @@ def handler(req):
# text will allow to open with a text editor # text will allow to open with a text editor
#req.content_type='application/octet-stream'\ #req.content_type='application/octet-stream'\
req.content_type = 'application/text'\ req.content_type = 'application/text'\
'\nContent-Disposition: attachment; filename=samlup_uXXXX.tmp' '\nContent-Disposition: attachment; filename=samlup_uXXXX'
req.write(assertion) req.write(assertion)
return apache.OK return apache.OK
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment