new saml2 endpoints, no more login/slo/defederation methods
This commit is contained in:
parent
04a4879e02
commit
48db9ce5b8
|
@ -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";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Reference in New Issue