There is currently a hook prior to logging in. I think it would be useful if there was a hook prior to logging out as well.

Comments

briand44 created an issue. See original summary.

briand44’s picture

StatusFileSize
new1.41 KB

Here is the patch.

briand44’s picture

StatusFileSize
new1.41 KB

Updating patch. The first example was a bad example since it would cause an infinite loop.

briand44’s picture

Status: Active » Needs review
maijs’s picture

@briand44, introducing a hook it a good idea, but I think it's also important to provide a context to the hooks, so that other modules are able to act on variables of simplesamlphp_auth_user_logout().

maijs’s picture

briand44’s picture

Status: Needs review » Closed (duplicate)

Sorry, I didn't see that issue. I will test out that patch.