vaulttec/sonar-auth-oidc

problem sincronyzing groups

Closed this issue · 2 comments

gt97 commented

I am using the plugin version 2.1.1 on sonarqube version 8.9.2. I copied the jar in extensions\plugins
I am not able to sincronyze the AD groups.
The login of the user is OK.

My configuration is:
Scopes --> openid email profile
ID token signature algorithm --> blank
Allow users to sign-up --> true
Login generation strategy --> Preferred username
Login strategy custom claim --> upn
Synchronize groups --> true
Groups claim name --> groups

I created a group in Sonarqube called TFS-ADMIN_C
When I login with a user that has TFS-ADMIN_C the user is not added to the group

The log (in trace mode) shows that the groups are in the response in json format.
This is the log (extracting o.v.s)
log.txt

Any help?

The log (in trace mode) shows that the groups are in the response in json format.

The groups list needs to be formatted as a JSON array instead of a string containing a JSON array:
image

From the plugin's README:
image