Added some event hooks to the authorization library