public function CasForcedAuthSubscriber::on403 in CAS 2.x
Handle 403 errors.
Other request subscribers with a higher priority may intercept the request and return a 403 before our request subscriber can handle it. In those instances we handle the forced login redirect if applicable here instead, using an exception subscriber.
Parameters
\Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent $event: The event to process.
File
- src/
Subscriber/ CasForcedAuthSubscriber.php, line 194
Class
- CasForcedAuthSubscriber
- Event subscriber for implementing CAS forced authentication.
Namespace
Drupal\cas\SubscriberCode
public function on403(GetResponseForExceptionEvent $event) {
$this
->onRequest($event);
}