OpenID with Gerrit not working

寵の児 提交于 2019-12-21 12:17:49

问题


When I click to Register or Sign In using Gerrit Code Review, I get this error: Provider is not supported, or was incorrectly entered.

And when I enter the URL into the OpenID field manually, it takes me to a Google page stating: The page you requested is invalid.

Any clue what's happening here?

EDIT: Upon further investigation, I realized that if I change the provided URL in the OpenID field to http rather than https, it will redirect me to Google properly and ask me to approve. However, on the redirect back to Gerrit, nothing seems to have happened. I tried registering/signing in multiple times and to no effect.

I've also looked in the MySQL database to see if any data was being stored, and there doesn't appear to be.

EDIT 2: I've now submitted a bug report to Gerrit.

EDIT 3: Answered. I'd have done well to read the previous bug reports a bit more closely. My sysadmin fu is also severely lacking. Nonetheless, this is solved as a duplicate of another bug and is a Debian issue; see below.


回答1:


This proved to be a duplicate of another issue.

The error was with Debian's OpenJDK Java security cacerts. Fixed by symlinking: ln -sf /etc/java-6-sun/security/cacerts /usr/lib/jvm/java-6-openjdk/jre/lib/security/cacerts

I've updated my bug report to indicate that the error logs are still not generating a response that pinpoints the true cause of the error.




回答2:


Is this related to Gerrit issue 459?

All providers are always accepted.
But an administrator can configure auth.trustedOpenId to prevent users coming from an unknown OpenID provider from using permissions granted to groups other than "Registered Users".

The problem with docwhat.org is the XRDS document isn't a valid XML file according to our relying party library.


As the OP Josh Smith mentions, a new bug has been submitted for that particular instance: Issue 728.



来源:https://stackoverflow.com/questions/3705656/openid-with-gerrit-not-working

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!