Skip to content

Commit ce88c55

Browse files
committed
Merge pull request #304 from nettob/master
Add unique roles to authentication
2 parents 62c1993 + 98ec375 commit ce88c55

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Security/Authentication/Provider/OAuthProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,8 @@ public function authenticate(TokenInterface $token)
9393
}
9494
}
9595

96+
$roles = array_unique($roles);
97+
9698
$token = new OAuthToken($roles);
9799
$token->setAuthenticated(true);
98100
$token->setToken($tokenString);

0 commit comments

Comments
 (0)