Skip to content

Commit 98ec375

Browse files
author
Nico Borghuis
committed
Add unique roles to authentication
Add unique roles to token so the roles keep clean!
1 parent bbce533 commit 98ec375

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
@@ -95,6 +95,8 @@ public function authenticate(TokenInterface $token)
9595
}
9696
}
9797

98+
$roles = array_unique($roles);
99+
98100
$token = new OAuthToken($roles);
99101
$token->setAuthenticated(true);
100102
$token->setToken($tokenString);

0 commit comments

Comments
 (0)