From 301516c30aa3b6b7f7a0c48d2a9bef25aa9d3aa6 Mon Sep 17 00:00:00 2001 From: Roland Hedberg Date: Wed, 29 Sep 2010 11:01:52 +0200 Subject: [PATCH] Changes in config parsing necessitate changes here --- src/s2repoze/plugins/sp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/s2repoze/plugins/sp.py b/src/s2repoze/plugins/sp.py index 2d720c6..251f15d 100644 --- a/src/s2repoze/plugins/sp.py +++ b/src/s2repoze/plugins/sp.py @@ -34,6 +34,7 @@ from repoze.who.interfaces import IChallenger, IIdentifier, IAuthenticator from repoze.who.interfaces import IMetadataProvider from repoze.who.plugins.form import FormPluginBase +from saml2 import BINDING_HTTP_REDIRECT from saml2.client import Saml2Client #from saml2.attribute_resolver import AttributeResolver from saml2.config import Config @@ -114,7 +115,7 @@ class SAML2Plugin(FormPluginBase): #self.log and self.log.info("IdP URL: %s" % idps) if len( idps ) == 1: - idp_url = idps[0] + idp_url = idps[0]["single_sign_on_service"][BINDING_HTTP_REDIRECT] elif len( idps ) == 0: return (1, HTTPInternalServerError(detail='Misconfiguration')) else: