Commit c9fcea68 authored by Enriko Käsper's avatar Enriko Käsper
Browse files

Merge branch 'hotfix/ad-role-code' into 'master'

Release: merge 'hotfix-ad-role-code' into 'master' created by Enriko Käsper

See merge request teis/auth-service!19
parents 916d42c4 433a67a7
theGroup=ee.sm.ti.teis
theVersion=1.1.0
theVersion=1.1.1
commonsVersion=1.2.0
commonApiGatewayVersion=1.2.0
schedulerVersion=1.1.0
......
......@@ -84,7 +84,11 @@ public class UserInfoService {
List<String> roleCodes = new ArrayList<>();
for (GroupRepresentation groupRepresentation : keycloakRoles) {
if (groupRepresentation.getName().toUpperCase().contains(groupPrefix)) {
String roleCode = groupRepresentation.getName().toUpperCase().replace(groupPrefix + " ", "");
String roleCode = groupRepresentation
.getName()
.toUpperCase()
.replace(groupPrefix + " ", "")
.replace(" ", "");
roleCodes.add(roleCode);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment