Skip to content

Commit

Permalink
fix: perform the trim() in the backend also
Browse files Browse the repository at this point in the history
  • Loading branch information
JivusAyrus committed Jan 29, 2025
1 parent c80a973 commit 2ea7ed3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controlplane/src/core/services/OidcProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class OidcProvider {
if (endpoint === 'login.microsoftonline.com') {
key = 'groups';
}
const claims = `[{ "key": "${key}", "value": "${mapper.ssoGroup}" }]`;
const claims = `[{ "key": "${key}", "value": "${mapper.ssoGroup.trim()}" }]`;
let keycloakGroupName;

switch (mapper.role) {
Expand Down

0 comments on commit 2ea7ed3

Please # to comment.