Authenticate Gerrit server to Azure SSO

26 views
Skip to first unread message

Guy Levkowitz

unread,
Dec 15, 2025, 4:44:16 AM (yesterday) Dec 15
to Repo and Gerrit Discussion
Hey

Today, we are using LDAP authentication on our Gerrit server 3.12.2
[auth]
        type = LDAP
        gitBasicAuthPolicy = HTTP_LDAP

how can we use Azure SSO - can you use the 
plugins/oauth - ? 

Any documentation about it 

Please share


Alon Bar-Lev

unread,
Dec 15, 2025, 4:53:22 AM (yesterday) Dec 15
to Guy Levkowitz, Repo and Gerrit Discussion
Hi,

I use oauth as saml has no advantage in this case, no SCIM and no groups.

Create App registration; Gerrit.
Choose web authentication method and input: https://fq-host/oauth as url.

Generate a secret.

Install gerrit-oauth-provider plugin in gerrit.

gerrit.config
---
[auth]
type = OAUTH
gitBasicAuthPolicy = HTTP 
[plugin "gerrit-oauth-provider-azure-oauth"]
tenant = @uuid-of-your-tenant@
---

secure.config
---
[plugin "gerrit-oauth-provider-azure-oauth"]
client-id = @client-id@
client-secret = @secret@
---

Regards,
Alon

Guy Levkowitz

unread,
Dec 15, 2025, 9:48:33 AM (yesterday) Dec 15
to Repo and Gerrit Discussion
Thanks for your answer



ב-יום שני, 15 בדצמבר 2025 בשעה 11:53:22 UTC+2, Alon Bar-Lev כתב/ה:
Reply all
Reply to author
Forward
0 new messages