Hello @Joe,
I didn’t get any message from you. Did you send it to david.hy.yi@gmail.com?
I am not using SAML. Instead I am trying to use HTTP Header Authentication for SSO integration. The key for the Identity Provider HTTP Header Authentication is “sonarqube”. Since my current key is “sonarqube” already, so I didn’t change it.
I am currently using LDAP for authentication. My current external provider should be LDAP_Default, but for some reason, it is “sonarqube”. I don’t know why. I have about 307 users, and all of them are using LDAP integration, but only about 67 of them have LDAP_default as their external provider. The rest have “sonarqube” as their external provider.
Should I change it to LDAP_default and then back to sonarqube?
Also when using HTTP Header Authentication, do users still need to click “log in” to be authenticated? When I tried it, I see the following in the web.log:
2024.11.19 07:44:20 DEBUG web[AZNFF9+RsNlJO+nAAAAQ][auth.event] login failure [cause|User is not local][method|FORM][provider|LOCAL|local][IP|x.x.x.x|][login|david.yi@domain.com]
I tried to delete myself to make myself a new user, and it doesn’t work either:
2024.11.19 08:36:14 DEBUG web[AZNFQPbG8LjQI7j5AABk][auth.event] login failure [cause|No active user for login][method|FORM][provider|LOCAL|local][IP|x.x.x.x|][login|david.yi@domain.com]
Regarding your comment about the curl command, I tried the following today:
curl -L -X POST -u squ_xxx: 'https://sq.domain.com:9191/sonar/api/users/update_login?newLogin=a.bc@domain.com&login=abc'
{"errors":[{"msg":"User \u0027abc\u0027 doesn\u0027t exist"}]}
curl -L -X POST -u squ_xxx: 'https://sq.domain.com:8443/sonar/api/users/update_login?newLogin=a.bc@domain.com&login=abc'
The port 8443 is to reach the external identity provider. Once the authentication is done, it will pass to the Nginx server on the port 9191. The user login has been changed from “abc” to its email address, so the first curl works as expected, but the second curl command doesn’t seem to work.
Thanks,
Hongyuan