-
Notifications
You must be signed in to change notification settings - Fork 84
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
Cannot link to user identity with OAuth prefix #99
Comments
Can you check in the database If you have any new entries in the table? |
Running this query:
and filtering only all the rows related to my user:
|
Also, I have reverted to the older version in the meantime and it is working ok: |
As you can see, the entry was written as expected:
The better question is why the authentification doesn't work. |
It has created a new 1000259 user for the same account, is that expected? |
I was not able to reproduce your problem. What I tried:
|
On second thought, I have an idea, what probably went wrong on your side. Can it be, that you:
This is the only explanation that I have, how you could end up with different user ids. The reason is, that if you don't specify There is no automagical way to recover from here. What you would need to do:
This should just work. |
It sounds like a reasonable cause; I will update the plugin and try with a clean user to see if everything is OK. If it doesn't I will debug further to provide a reproducible list of steps. |
Confirmed. It has been a timing issue because some people (including me testing) logged in before the setting was active. I will remove the new users from the tables manually. Thank you very much for you help. |
We use Gerrit configured with GitHub OAuth. When updating this plugin to the latest version this error appears every time the users log in and a Forbidden error is returned.
Error in the logs:
I saw the commit 879bbae and configured it using:
The file
gerrit.config
has the following settings related to the plugin:The cache is not stale, we re-index everything automatically when Gerrit is restarted with the following commands:
This issue is similar to #91, but I'm already in the latest stable version of Gerrit.
Does anyone know why the plugin is not adding the prefix when comparing it to migrate old accounts?
Versions:
Gerrit: 2.14.6, downloaded from https://www.gerritcodereview.com/download/gerrit-2.14.6.war
Gerrit OAuth provider: 2.14.6, downloaded from https://github.com/davido/gerrit-oauth-provider/releases/download/v2.14.6/gerrit-oauth-provider.jar
The text was updated successfully, but these errors were encountered: