Browse Source

Return after failing to find the "aud" claim.

pull/839/head
Adam Vessey 4 years ago
parent
commit
d0d70e7dea
  1. 1
      src/EventSubscriber/JwtEventSubscriber.php

1
src/EventSubscriber/JwtEventSubscriber.php

@ -116,6 +116,7 @@ class JwtEventSubscriber implements EventSubscriberInterface {
if (!in_array(static::AUDIENCE, $token->getClaim('aud'), TRUE)) {
$event->invalidate('Missing audience entry.');
return;
}
$uid = $token->getClaim('webid');

Loading…
Cancel
Save