New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Authentication issue missing profile information #3
Comments
A pull request fixing this issue will come quite soon. |
The attached
The plugins sends an authentication request to the IdP's authentication endpoint with
Due to missing |
This commit fixes the issue vaulttec#3 by quering the user info endpoint when name and preferred username are both null. Additional tests are introduced. The data is taken from SonarQube's web.log which is also attached to the issue.
Unluckily there are no technical details about the OpenID Connect implementation in JetBrains Hub developer resources. So there's no indication about any support for (via scope) requested claims in the ID token like Keycloak does with it's OIDC Token and SAML Assertion Mappings. Anyway, if the ID token does not contain the required |
* Fix authentication issue with missing profile info This commit fixes the issue #3 by quering the user info endpoint when name and preferred username are both null. Additional tests are introduced. The data is taken from SonarQube's web.log which is also attached to the issue. * Cleanup - Remove unused imports * Fix .travis.yml The command executed by bash must be passed via the -c option.
Hi guys, I'm still having this "User login must not be blank" issue. Can you help me? My userInfo
|
@fonsecas72 Your IdP doesn't provide the claims In #10 additional checks for the required claims in the user info are added. |
@tjuerge humm :/ currently I don't have a way to manage idP. Maybe we could have a way to customize this field? So that I could use "unique_name". |
@fonsecas72 In your case customizing So we would end up with customization of every standard user info claim defined in the spec. Sorry, that's not what I'm keen on. |
Ok, I might have to fork this plugin then. I believe Jenkins plugin allows this sort of customization though. Thank you very much @tjuerge |
I am integrating Keycloak sso with sonarqube. while login it gives the unauthorized error.
2018.09.19 12:24:48 ERROR web[AWXxufUIFR3eNNs8AABj][o.s.s.a.AuthenticationError] Fail to callback authentication with 'oidc' |
@manish26121981 as stated in the exception ( |
It seems there is an issue with retrieving profile related information when the OpenID Connect Provider is Jetbrains Hub (https://www.jetbrains.com/help/hub/OpenID-Connect.html).
In my setup, I am using
After trying to login I get the following in my browser.
In the web.log file you'll find a stack trace at the end, saying
java.lang.IllegalArgumentException: User login must not be blank
.I set the
sonar.log.level.web
toDEBUG
and attached the web.log file.web.log
The text was updated successfully, but these errors were encountered: