<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">On Sun, Feb 10, 2019, 05:21 Tristan Cacqueray <<a href="mailto:tdecacqu@redhat.com">tdecacqu@redhat.com</a> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
On Sat, Feb 09, 2019 at 12:25 Artom Lifshitz wrote:<br>
> Hey all,<br>
><br>
> There's a Gerrit app for Android that I'm trying, and it doesn't<br>
> support OAuth authentication [1]. To add RDO's Gerrit to it, I need to<br>
> generate an HTTP password (Profile picture in near the top right -><br>
> Settings -> HTTP Password -> Generate). This worked fine on<br>
> OpenStack's Gerrit, but in RDO Gerrit it does nothing. Using Firefox's<br>
> dev tools, I was able to observe that the request [2] gets a 403 back.<br>
> I've added the full request/response exchange at the end of this<br>
> email, but I just want to know if this is intentionally disabled, or<br>
> did I just stumble upon a previously-unknown problem?<br>
><br>
> Cheers!<br>
><br>
> [1] <a href="https://github.com/jruesga/rview/issues/62" rel="noreferrer noreferrer" target="_blank">https://github.com/jruesga/rview/issues/62</a><br>
> [2] <a href="https://review.rdoproject.org/r/Documentation/rest-api-accounts.html#set-http-password" rel="noreferrer noreferrer" target="_blank">https://review.rdoproject.org/r/Documentation/rest-api-accounts.html#set-http-password</a><br>
><br>
<br>
Hello Artom,<br>
<br>
The Gerrit Authentication is managed by a Software Factory service named CAUTH.<br>
Since the upgrade, the Gerrit HTTP password is set by your user API key,<br>
Visit this page: <a href="https://review.rdoproject.org/sf/user_settings.html" rel="noreferrer noreferrer" target="_blank">https://review.rdoproject.org/sf/user_settings.html</a><br>
and click "Generate a new API key". Then you can use that key as<br>
your Gerrit HTTP password. (If you haven't generated a new API key since<br>
the upgrade, please generate a new one)<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">That worked, thanks Tristan!</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
This change went un-noticed as it was part of Software Factory version<br>
3.1 release note (and we update rdoproject from 2.7 directly to 3.2).<br>
Here is the relevant documentation:<br>
<a href="https://review.rdoproject.org/docs/faqs/gerrit_rest_api.html#how-can-i-use-the-gerrit-rest-api" rel="noreferrer noreferrer" target="_blank">https://review.rdoproject.org/docs/faqs/gerrit_rest_api.html#how-can-i-use-the-gerrit-rest-api</a><br>
<br>
Let me know if it doesn't work with rview.<br>
-Tristan<br>
</blockquote></div></div></div>