Skip to content

Commit

Permalink
Change issued by constraint to be allowed domains
Browse files Browse the repository at this point in the history
  • Loading branch information
Viktor Åsbrink committed Mar 1, 2023
1 parent e73a6fa commit 2d4201c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Authentication/JWTAuthenticator.php
Original file line number Diff line number Diff line change
Expand Up @@ -595,7 +595,7 @@ protected function validateParsedToken(UnencryptedToken $parsedToken, HTTPreques
// @todo - upgrade
// @see https://lcobucci-jwt.readthedocs.io/en/latest/upgrading/#replace-tokenverify-and-tokenvalidate-with-validation-api
$this->config->setValidationConstraints(
new IssuedBy($request->getHeader('Origin')),
new IssuedBy(...$this->getAllowedDomains()),
new PermittedFor(Director::absoluteBaseURL()),
new IdentifiedBy($record->UID),
new StrictValidAt(new SystemClock(new DateTimeZone(date_default_timezone_get()))),
Expand Down

0 comments on commit 2d4201c

Please sign in to comment.