Skip to content

Commit

Permalink
Return after failing to find the "aud" claim.
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-vessey committed Jun 23, 2021
1 parent 11057e9 commit 4d16924
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/EventSubscriber/JwtEventSubscriber.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ public function validate(JwtAuthValidateEvent $event) {

if (!in_array(static::AUDIENCE, $token->getClaim('aud'), TRUE)) {
$event->invalidate('Missing audience entry.');
return;
}

$uid = $token->getClaim('webid');
Expand Down

0 comments on commit 4d16924

Please sign in to comment.