davido/gerrit-oauth-provider

Role mapping?

kallisti5 opened this issue · 2 comments

Is there anyway to map oauth2 roles to groups in gerrit?

davido commented

This wasn't done yet.

Hi,
Any updates on this?
I'm trying to use Authentik Oauth2 as a replacement for LDAP. I successfully configured Gerrit Oauth2 authentification (using this commit - https://gerrit.googlesource.com/plugins/oauth/+/b27cf3ea820eec2ddd22d217fc839261692ccdb0), but I can't find how to use Authentik groups in Gerrit to manage permissions. In the case of LDAP, I was able to use LDAP groups for that. Is there a way to do the same using Oauth2? Also, I tried to configure OpenID SSO auth on Gerrit with Authentik, but without success. Maybe it's not supported? @davido can you help me with these answers?