/srv/irclogs.ubuntu.com/2017/04/06/#launchpad.txt

=== chihchun_afk is now known as chihchun
=== JanC is now known as Guest52949
=== JanC_ is now known as JanC
=== zoktar_ is now known as zoktar
=== chihchun is now known as chihchun_afk
=== Trevinho_ is now known as Trevinho
=== Mc__ is now known as Mc
=== daker_ is now known as daker
=== maclin1 is now known as maclin
SignumHint… https://help.launchpad.net/BadgeKit seems to be broken.19:12
SignumIn other news… I'd like to add Ubuntu single-sign-on to screenshots.debian.net (aka screenshots.ubuntu.com) and I wonder if there is an SVG of the Launchpad logo or a ready "Login with Ubuntu Launchpad" logo.19:13
SignumAlso I'd like to know whether SSO against Ubuntu One or Ubuntu Launchpad makes more sense. I'm a bit confused which of the two systems is recommended.19:14
dobeythey are the same system19:14
SignumOh, good, so I can use OAuth against the launchpad then.19:15
dobeyOpenID is probably what you want19:15
SignumRecommended over oauth?19:16
Signumscreenshots.debian.net runs on Ruby-on-Rails which uses the "omniauth" library. That's what the Ruby "omniauth-launchpad" module seems to use. And so far it works.19:17
dobeylogin.ubuntu.com (login.launchpad.net) doesn't do oauth19:17
dobeylaunchpad itself has oauth for talking to the launchpad api19:17
dobeyOpenID is what all the other external sites that allow logging in via launchpad use (ie stackexchange, ubuntu forums, and such)19:18
SignumI think the module uses api.ubuntu.com  according to https://github.com/joaopapereira/omniauth-launchpad/blob/master/lib/omniauth/strategies/launchpad.rb19:19
SignumIf that's okay I'd leave it like that because it seems to be working. :)19:20
dobeythat is using launchpad oauth ye19:20
dobeyyes19:20
SignumDo you happen to know if there are fancy templates that help me create "Login with Launchpad" buttons? I have just taken the PNG logo from launchpad.net but perhaps there's a styleguide.19:21
dobeynot afaik, no19:22
dobeybut that's not exactly "log in with launchpad" either. it's more "grant access to your launchpad account to this site" (which is what oauth is for). openid is "log in with launchpad"19:23
dobeybut eh19:23
cjwatsonlib/canonical/launchpad/images/src/launchpad-gem.svg in the Launchpad source tree has the logo in various permutations and could perhaps be cut down.  I'm sure there must be a better source somewhere19:23
cjwatsonYeah, screenshots.debian.net really should not be using that oauth strategy.19:24
cjwatsonIt's far too much privilege for Launchpad users to grant to a third-party site.19:25
Signumcjwatson: I see. It keeps asking what kind of access the Launchpad should grant for the site anyway. I assume that with OpenID that's more like authenticate-and-go.19:25
cjwatsonAs dobey says, you should be using OpenID against SSO, not OAuth against Launchpad.19:26
SignumWill do.19:26
cjwatsonWe normally prefer language like "Sign in with Ubuntu SSO" (or in some places "Sign in with Ubuntu One", though that's a bit weird IMO since that's otherwise an obsolete brand) for third-party sites.  Launchpad is (at least in theory) just another SSO consumer.19:27
cjwatsonOnly in theory because it actually occupies a somewhat special position due to SSO's history, but still.19:27
SignumTo use OpenID I'd have to ask the user what Launchpad nickname they have, right?19:28
cjwatsonOpenID normally works by redirecting the user to login.ubuntu.com with a pile of special query parameters, which will cause login.u.c to ask them for email address and password (and maybe two-factor auth).19:28
cjwatsonWhen that process is done, it redirects back to your site by way of one of those query parameters.19:29
cjwatson(Of course you should find an existing library for this rather than rolling it yourself.)19:30
cjwatsonTry going to e.g. https://myapps.developer.ubuntu.com/ and signing in there to see the flow.19:31
Signumcjwatson: What is the OpenID identifier for Ubuntu?19:40
Signumaka URL19:40
cjwatsonSignum: You mean the endpoint URL?  https://login.ubuntu.com/19:51
SignumGreat, thanks. I'll try that.19:51

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!