Skip to content
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

OAuth users cannot see any Gerrit group #27

Closed
dmikurube opened this issue Apr 20, 2015 · 4 comments
Closed

OAuth users cannot see any Gerrit group #27

dmikurube opened this issue Apr 20, 2015 · 4 comments

Comments

@dmikurube
Copy link

I installed the plugin on Gerrit 2.11, and created a new user through OAuth. At that time, even if I added the user to an Administrator group, the user doesn't behave as an Administrator. "People" -> "List Groups" shows nothing for that user.

I'm not sure whether this issue is on Gerrit-side or on plugin-side, but please let me just report it...


Some additional tries:

I directly manipulated the table "account_external_ids" in Gerrit's internal DB. I added a new row with an OAuth external_id to an existing Administrator user, the user doesn't work as an Administrator. Once I removed the row, the user got back as an Administrator.

@dmikurube dmikurube changed the title OAuth users cannot see any Gerrit groups OAuth users cannot see any Gerrit group Apr 20, 2015
@dmikurube
Copy link
Author

In other words, if a user has an identify of OAuth, the user is considered belonging to no any groups even if the internal DB has an entry of group status. Once the OAuth identity is removed, the user is handled as a member of the group.

@davido
Copy link
Owner

davido commented Apr 21, 2015

Have you checked #4 and suggested solution?

@dmikurube
Copy link
Author

Ah, that is the root cause! Thank you very much. It fixed. I wasn't aware of the issue as the title was not about groups...

@davido
Copy link
Owner

davido commented Apr 21, 2015

There is also FAQ out there: https://github.com/davido/gerrit-oauth-provider/wiki/FAQ.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants