Skip to content
Snippets Groups Projects
Commit 6bf1fefe authored by Lukasz Lopatowski's avatar Lukasz Lopatowski
Browse files

Merge branch 'fix-role-based-on-1.7.0' into 'release/1.7.1'

Fix role based on 1.7.0

See merge request !135
parents d0edceca 78467fe7
No related branches found
No related tags found
2 merge requests!137Draft: Release/1.7.1,!135Fix role based on 1.7.0
Pipeline #93195 passed
......@@ -19,6 +19,7 @@ import java.util.Collections;
import java.util.Date;
import java.util.List;
import java.util.UUID;
import java.util.stream.Collectors;
@Service("jwtTokenService")
@NoArgsConstructor
......@@ -82,7 +83,7 @@ public class JWTTokenService {
role ->
role.getRole().toString()
)
.toArray(String[]::new)
.collect(Collectors.toSet())
)
.claim(LANGUAGE, user.getSelectedLanguage())
.signWith(getSignInKey(jwtSettings.getSigningKey()), SignatureAlgorithm.HS512)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment