diff --git a/src/Provider/Traits/TokenValidatorTrait.php b/src/Provider/Traits/TokenValidatorTrait.php index dac05a2..f834336 100644 --- a/src/Provider/Traits/TokenValidatorTrait.php +++ b/src/Provider/Traits/TokenValidatorTrait.php @@ -111,7 +111,7 @@ public function validateScope($token, array $scope) // check expected scopes are included $scp = is_array($token->scp) ? array_unique($token->scp) : []; if (count(array_intersect($scope, $scp)) < count($scope)) { - throw new Exception\ScopeInvalidException('Expected scopes not matched: ' . implode(', ', $scope)); + throw new Exception\ScopeInvalidException('Expected scope not matched: ' . implode(', ', $scope)); } } @@ -128,7 +128,7 @@ public function validateAudience($token, array $audience) // check expected audiences are included $aud = is_array($token->aud) ? array_unique($token->aud) : []; if (count(array_intersect($audience, $aud)) < count($audience)) { - throw new Exception\AudienceInvalidException('Expected audiences not matched: ' . implode(', ', $audience)); + throw new Exception\AudienceInvalidException('Expected audience not matched: ' . implode(', ', $audience)); } } }