Authproc but on logout

Skip to first unread message

Nick Vissari

Nov 12, 2020, 2:53:28 PM11/12/20
to SimpleSAMLphp developers
Any advise on where/how I could execute some custom code on logout? I would like to avoid throwing a bunch of hacks in modules/saml/lib/IdP/SAML2.php.

Nov 18, 2020, 3:36:20 AM11/18/20
to SimpleSAMLphp developers
Hi Nick,

I think the interface class \SimpleSAML\IdP\LogoutHandlerInterface was created for this reason, so you can easily write your own logout handler.
Seems to be a bit of an undocumented feature, but you can actually configure the custom handler in config.php, see:
It may not be as flexible as authprocs, but I hope this suits your needs?

- Tim

Op donderdag 12 november 2020 om 20:53:28 UTC+1 schreef

Nov 18, 2020, 4:27:26 AM11/18/20
to SimpleSAMLphp developers
Looking at the code a bit better, I don't think it's usable for you _just yet_
We would need to change the default case and see of the configured value points to an existing class which implements the LogoutHandlerInterface.. Should be an easy change though.

Op woensdag 18 november 2020 om 09:36:20 UTC+1 schreef

Nick Vissari

Nov 18, 2020, 6:58:26 AM11/18/20
to SimpleSAMLphp developers
Excellent! Thanks for pointing me in the right direction.

You received this message because you are subscribed to the Google Groups "SimpleSAMLphp developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
Reply all
Reply to author
0 new messages