Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
marcus.hardt
pluto
Commits
0cc012f5
Commit
0cc012f5
authored
Nov 18, 2015
by
marcus-tun
Browse files
Now the encrypted and the unencrypted assertion can be downloaded from the SSO page
parent
037cf237
Changes
2
Show whitespace changes
Inline
Side-by-side
server/js-new.js
View file @
0cc012f5
...
@@ -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
)
})
})
...
...
server/sso.py
View file @
0cc012f5
...
@@ -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'
\
'
\n
Content-Disposition: attachment; filename=samlup_uXXXX
.tmp
'
'
\n
Content-Disposition: attachment; filename=samlup_uXXXX'
req
.
write
(
assertion
)
req
.
write
(
assertion
)
return
apache
.
OK
return
apache
.
OK
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment