Skip to content

Commit

Permalink
Shibboleth attributes app compatibility for python v3
Browse files Browse the repository at this point in the history
  • Loading branch information
credman committed Sep 6, 2023
1 parent 32563ad commit 8731369
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions base/container_files/var-www-html/app/index.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
# -*- coding: UTF-8 -*-# enable debugging
import cgitb
import os
Expand All @@ -12,7 +12,7 @@

for k, v in sorted(os.environ.items()):
if k == "REMOTE_USER" or k.startswith('Shib') or not k[0].isupper():
print "%s = %s<br>" % (k, v)
print ("%s = %s<br>" % (k, v))

print("<p>* This list is a filtered list of environment variables containing the <a href=\"/Shibboleth.sso/Session\">Shibboleth SP attributes</a>.</p>")
print("</body></html>")

0 comments on commit 8731369

Please sign in to comment.