From 829e5b605aa49301854212d1a70f3675e22269c8 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 6 May 2011 14:32:14 +0000 Subject: [PATCH] [idff12] make relay_state passing for idp initiated login similar to the way saml2 does it --- authentic/liberty/root.ptl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authentic/liberty/root.ptl b/authentic/liberty/root.ptl index 5c8304d..8c4ce9d 100644 --- a/authentic/liberty/root.ptl +++ b/authentic/liberty/root.ptl @@ -1383,10 +1383,12 @@ class SpUI(AccessControlled, Directory): authentic.misc.get_abs_path(lp['metadata']), authentic.misc.get_abs_path(lp.get('publickey')), None) - def login(self): + def login(self, relay_state=None): self.init_provider() login = lasso.Login(get_lasso_server()) login.initIdpInitiatedAuthnRequest(self.p.providerId) + if relay_state: + login.msgRelayState = relay_state get_logger().info('SSO to %s' % self.p.providerId) login.request.protocolProfile = lasso.LIB_PROTOCOL_PROFILE_BRWS_ART login.processAuthnRequestMsg(None)