<div dir="ltr">On Fri, Aug 28, 2015 at 9:19 AM, Gijs Kruitbosch <span dir="ltr"><<a href="mailto:gijskruitbosch@gmail.com" target="_blank">gijskruitbosch@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On my OS X machine, this was essentially seamless. On Windows, when pushing to reviewboard I now get told I need to configure the API key in my hgrc (mercurial.ini) manually. Is that expected? Why the difference?<span class="HOEnZb"><font color="#888888"></font></span><br><span class="HOEnZb"></span><div class="HOEnZb"><div class="h5"></div></div></blockquote><div><br></div><div>Yes, it is expected.<br><br></div><div>On the browser, logging in involves a semi-complicated chain of HTTP requests and callbacks between Bugzilla and MozReview. This mostly-hidden complexity enables the web login to be seamless and made possible by the abilities of your web browser and the fact that MozReview is on a public web server that Bugzilla can "ping back."<br><br></div><div>The CLI is not so fortunate. So, you need to visit Bugzilla's web interface to obtain an API key and plug it into your hgrc. While we could have continued supporting passwords and cookies from the CLI, many were rightly concerned about having credentials in their hgrc file. API keys are fundamentally better (many can exist, they can be revoked, etc) so we decided to require API keys from the client. We will eventually retool other Bugzilla-using extensions to use and prefer API keys.<br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">
<br>
On 26/08/2015 21:22, Gijs Kruitbosch wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
For those of us who use reviewboard, please take note:<br>
<br>
<br>
-------- Forwarded Message --------<br>
Subject: MozReview now uses Bugzilla's auth delegation<br>
Date: Wed, 26 Aug 2015 13:36:32 -0400<br>
From: Mark Côté <<a href="mailto:mcote@mozilla.com" target="_blank">mcote@mozilla.com</a>><br>
Newsgroups: mozilla.dev.platform<br>
<br>
tl;dr We improved the authentication system in MozReview. Please log<br>
out (if necessary) and back into the MozReview UI (Review Board) before<br>
pushing any commits up for review.<br>
<br>
Today we deployed a change to MozReview's authentication system. Rather<br>
than logging into Review Board with your Bugzilla credentials, you'll<br>
now be redirected to Bugzilla to log in. After you log in, or<br>
immediately if you already have an open Bugzilla session, you'll be<br>
redirected back to MozReview, and an API key will be sent in the<br>
background. This API key is listed in your Bugzilla Preferences and can<br>
be revoked at any time if you no longer want to use MozReview, or if you<br>
want to generate and use a new one for some reason. You'll also get an<br>
email notifying you that an API key has been created.<br>
<br>
Note that, in addition to being more secure, this fixes the known,<br>
annoying problem of being periodically logged out of MozReview.<br>
<br>
You'll have to log into the UI before you publish review requests for<br>
reviewer detection to work, since all communication between the<br>
MozReview server and Bugzilla now uses API keys. We had one report that<br>
the user seemed to still be logged in after the deployment today; if<br>
that happens, please log out and back in again. We apologize for this<br>
inconvenience and for not announcing that part earlier.<br>
<br>
API-key support on the command line is nearly finished (see bug<br>
1198087), after which MozReview will no longer need your password nor<br>
cookies at all.<br>
<br>
See my previous post for more info:<br>
<a href="https://mrcote.info/blog/2015/08/04/mozreview-auth-changes/" rel="noreferrer" target="_blank">https://mrcote.info/blog/2015/08/04/mozreview-auth-changes/</a><br>
<br>
Mark<br>
<br>
<br>
</blockquote>
<br>
_______________________________________________<br>
firefox-dev mailing list<br>
<a href="mailto:firefox-dev@mozilla.org" target="_blank">firefox-dev@mozilla.org</a><br>
<a href="https://mail.mozilla.org/listinfo/firefox-dev" rel="noreferrer" target="_blank">https://mail.mozilla.org/listinfo/firefox-dev</a><br>
</div></div></blockquote></div><br></div></div>