Comment 41 for bug 881019

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 881019] Re: Lp login is broken after account merge

On Tue, May 29, 2012 at 2:50 AM, James E. Blair <email address hidden> wrote:
> Since we're presenting a unified system with Launchpad, Gerrit, and our
> other tools, a user's first interaction with Gerrit may well be over
> SSH.  This works because we are able to pre-populate Gerrit's database
> using the LP account -> OpenID mapping.  Having an API call to do that
> correctly would be very helpful and make this work for everyone.  Having
> a user log in to Gerrit just to "register" when everything should be
> automatic isn't a great UX.

You can take the userid in the ssh challenge and map via the existing
sshkeys API to determine their SSH key in realtime. Depending on the
SSH server you are using, this may be more or less easy though.

bzr+ssh://bazaar.launchpad.net does precisely this (though it uses a
predecessor of the current LP API which isn't externally exposed).

-Rob