From b745c15a8631d63dd0e5851252bc347237d58e32 Mon Sep 17 00:00:00 2001 From: Robin Chalas Date: Wed, 26 Oct 2016 01:46:12 +0200 Subject: [PATCH] #261 The security token must be authenticated no matter of the user's roles --- Security/Authentication/Token/JWTUserToken.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Security/Authentication/Token/JWTUserToken.php b/Security/Authentication/Token/JWTUserToken.php index 24cc27b9..0cdf8b9b 100644 --- a/Security/Authentication/Token/JWTUserToken.php +++ b/Security/Authentication/Token/JWTUserToken.php @@ -35,7 +35,7 @@ public function __construct(array $roles = [], UserInterface $user = null, $rawT } $this->setRawToken($rawToken); - $this->setAuthenticated(count($roles) > 0); + $this->setAuthenticated(true); $this->providerKey = $providerKey; }