问题
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 configureauth.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