summaryrefslogtreecommitdiffstats
path: root/ipsilon/providers/saml2idp.py
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-04-09 15:21:55 -0400
committerSimo Sorce <simo@redhat.com>2014-04-11 17:25:54 -0400
commit11242b8a3cab8d1594644cf22285e94639cca158 (patch)
tree38dc56263728863b22b5af1b39a1cfbc3a3bbb28 /ipsilon/providers/saml2idp.py
parentc3a2716985604564d46bc5367cf0be5e45d7f14a (diff)
downloadipsilon-11242b8a3cab8d1594644cf22285e94639cca158.tar.gz
ipsilon-11242b8a3cab8d1594644cf22285e94639cca158.tar.xz
ipsilon-11242b8a3cab8d1594644cf22285e94639cca158.zip
Simplify metadata add_service signature
Add a map that takes care of the lower level lasso-related details Signed-off-by: Simo Sorce <simo@redhat.com>
Diffstat (limited to 'ipsilon/providers/saml2idp.py')
-rwxr-xr-xipsilon/providers/saml2idp.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/ipsilon/providers/saml2idp.py b/ipsilon/providers/saml2idp.py
index 87cc7f6..507bba2 100755
--- a/ipsilon/providers/saml2idp.py
+++ b/ipsilon/providers/saml2idp.py
@@ -268,11 +268,9 @@ class Installer(object):
meta = metadata.Metadata(metadata.IDP_ROLE)
meta.set_entity_id(url + '/metadata')
meta.add_certs(cert, cert)
- meta.add_service(metadata.SSO_SERVICE,
- lasso.SAML2_METADATA_BINDING_POST,
+ meta.add_service(metadata.SAML2_SERVICE_MAP['sso-post'],
url + 'SSO/POST')
- meta.add_service(metadata.SSO_SERVICE,
- lasso.SAML2_METADATA_BINDING_REDIRECT,
+ meta.add_service(metadata.SAML2_SERVICE_MAP['sso-redirect'],
url + 'SSO/Redirect')
meta.add_allowed_name_format(