This document describes the way errors and exceptions are handled in authentication sources and authentication processing filters.
...
...
@@ -25,7 +18,8 @@ How you throw an exception depends on where you want to throw it from.
The simplest case is if you want to throw it during the `authenticate()`-method in an authentication module or during the `process()`-method in a processing filter.
In those methods, you can just throw an exception:
public function process(&$state) {
public function process(array &$state): void
{
if ($state['something'] === false) {
throw new \SimpleSAML\Error\Exception('Something is wrong...');
}
...
...
@@ -40,7 +34,6 @@ If you want to throw an exception outside of those methods, i.e. after you have