I came across the need when I needed to handle some specific events like:
and some specific cases when authentication failed on Drupal side but in can't be handled via any events.
New event types and handlers for specific authentication errors need to be added.
Needs review
3.0
Code