new saml2 endpoints, no more login/slo/defederation methods

This commit is contained in:
<bdauvergne@entrouvert.com> 1209043435 +0200 0001-01-01 00:00:00 +00:00
parent 04a4879e02
commit 48db9ce5b8
1 changed files with 11 additions and 1 deletions

View File

@ -7,13 +7,23 @@ class MyEndPoint extends LassoSPKitSaml2Endpoint {
parent::dispatchAndExit();
} catch (Exception $e) {
$exceptionText = $e->__toString();
$lines = explode('\n',$exceptionText);
$lines = explode("\n",$exceptionText);
foreach ($lines as $line) {
lassospkit_errlog($line);
}
die('There was an error, shoot yourself !');
}
}
function assertionConsumer() {
$ret = parent::assertionConsumer();
if ($ret == 0) {
$r = $this->relayState;
echo "Ouais on est loggé, aller <a href='$r'>$r</a>";
} else {
echo "Une erreur lasso s'est produite de code $ret";
}
}
}