--/Gustaf
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks for handling it so quickly. The code is pushed.
/Gustaf
Thanks for handling it so quickly. The code is pushed.
/Gustaf
From: David Pursehouse <david.pu...@gmail.com>
Sent: Thursday, October 25, 2018 11:13 AM
To: Gustaf Lundh
Cc: Repo and Gerrit Discussion
Subject: Re: New plugin: Login Redirect Plug-in
On Thu, Oct 25, 2018 at 5:43 PM Gustaf Lundh <gustaf...@axis.com> wrote:
A small plug-in that directs anonymous users to a login screen.
Description:In Gerrit it is not very clear when you are browsing anonymously and a user may be confused over why their dashboard/changes are not listed or visible. By enforcing users to be logged in, this is a non-issue.
Background:All our users are expected to belong to a certain LDAP-group. We previously enforced this using a reverse proxy, but that made it harder for users to use the REST-API (the http password especially). Also, we ended up with AD authentication in the reverse-proxy in addition to Gerrit. We wanted Gerrit to own the whole authentication and authorization chain.
If our users browse Gerrit anonymously, pretty much no project/change is visible to them. This plug-in redirects the anonymous users to the login screen, enforcing that the user must be a logged-in user to browse the UI. This minimizes confusion for our users and makes the user experience nicer (no need to find and click the "Login" link).
A while ago, I saw some stackoverflow question about this and figured that the plugin may benefit other Gerrit users.
If you think this is applicable to other installations, please create a repo ("login-redirect") on gerrit-review for the plugin.
The group "plugins-login-redirect" has the Owner permission. You and Sven are members of that group.
--
/Gustaf
--
To unsubscribe, email repo-discus...@googlegroups.com
To unsubscribe, email repo-discuss...@googlegroups.com
Thanks. Added "/oauth" to the whitelist:
https://gerrit-review.googlesource.com/c/plugins/login-redirect/+/202519
/Gustaf
It looks like the /tools/hooks/commit-msg path needs to be excluded as well. When we try and curl the commit-msg hook when checking out a repo, its downloading a redirect page.Thanks