summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-05-19 21:15:56 +0200
committerSimo Sorce <simo@redhat.com>2014-05-19 21:17:06 +0200
commit3a174ea2d8b2266fc847e568fec373971b42def3 (patch)
tree931d3930dc79d114349d553a3059dc69fb742f53
parent75217be7ecda2b597c54629647e7e200f7c76541 (diff)
downloadipsilon.git-3a174ea2d8b2266fc847e568fec373971b42def3.tar.gz
ipsilon.git-3a174ea2d8b2266fc847e568fec373971b42def3.tar.xz
ipsilon.git-3a174ea2d8b2266fc847e568fec373971b42def3.zip
Fix generation fo server's metadata file
At some point a '/' got lost, causing the generation of wrong endpoints. Clients would then be redirected to an unexisting path and get a 404. Signed-off-by: Simo Sorce <simo@redhat.com>
-rwxr-xr-xipsilon/providers/saml2idp.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py
index c7ef939..b337652 100755
--- a/ipsilon/providers/saml2idp.py
+++ b/ipsilon/providers/saml2idp.py
@@ -266,9 +266,9 @@ class Installer(object):
meta.set_entity_id(url + '/metadata')
meta.add_certs(cert, cert)
meta.add_service(metadata.SAML2_SERVICE_MAP['sso-post'],
- url + 'SSO/POST')
+ url + '/SSO/POST')
meta.add_service(metadata.SAML2_SERVICE_MAP['sso-redirect'],
- url + 'SSO/Redirect')
+ url + '/SSO/Redirect')
meta.add_allowed_name_format(
lasso.SAML2_NAME_IDENTIFIER_FORMAT_TRANSIENT)