From 1d9f9d80b7227fa603fcdd7da318cc3ddcab25dc Mon Sep 17 00:00:00 2001 From: Date: Tue, 6 May 2008 14:47:08 +0200 Subject: [PATCH] add exemple defederation handling --- endpoints/saml2.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/endpoints/saml2.php b/endpoints/saml2.php index 1c79d8b..0866da2 100644 --- a/endpoints/saml2.php +++ b/endpoints/saml2.php @@ -39,6 +39,19 @@ class MyEndPoint extends LassoSPKitSaml2Endpoint { lassospkit_errlog("Demande de slo réussie: $ret"); } } + function nameIdManagementBrws() { + $ret = parent::nameIdManagementBrws(); + $this->handleNid($ret); + } + function nameIdManagementSoap() { + $ret = parent::nameIdManagementSoap(); + $this->handleNid($ret); + } + function handleNid($ret) { + if ($ret) { + error_log('Erreur lors du nid: ' . $ret . ': ' . strError($ret)); + } + } }