[19:12] <Signum> Hint… https://help.launchpad.net/BadgeKit seems to be broken.
[19:13] <Signum> In 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:14] <Signum> Also 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] <dobey> they are the same system
[19:15] <Signum> Oh, good, so I can use OAuth against the launchpad then.
[19:15] <dobey> OpenID is probably what you want
[19:16] <Signum> Recommended over oauth?
[19:17] <Signum> screenshots.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] <dobey> login.ubuntu.com (login.launchpad.net) doesn't do oauth
[19:17] <dobey> launchpad itself has oauth for talking to the launchpad api
[19:18] <dobey> OpenID is what all the other external sites that allow logging in via launchpad use (ie stackexchange, ubuntu forums, and such)
[19:19] <Signum> I think the module uses api.ubuntu.com  according to https://github.com/joaopapereira/omniauth-launchpad/blob/master/lib/omniauth/strategies/launchpad.rb
[19:20] <Signum> If that's okay I'd leave it like that because it seems to be working. :)
[19:20] <dobey> that is using launchpad oauth ye
[19:20] <dobey> yes
[19:21] <Signum> Do 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:22] <dobey> not afaik, no
[19:23] <dobey> but 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] <dobey> but eh
[19:23] <cjwatson> lib/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 somewhere
[19:24] <cjwatson> Yeah, screenshots.debian.net really should not be using that oauth strategy.
[19:25] <cjwatson> It's far too much privilege for Launchpad users to grant to a third-party site.
[19:25] <Signum> cjwatson: 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:26] <cjwatson> As dobey says, you should be using OpenID against SSO, not OAuth against Launchpad.
[19:26] <Signum> Will do.
[19:27] <cjwatson> We 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] <cjwatson> Only in theory because it actually occupies a somewhat special position due to SSO's history, but still.
[19:28] <Signum> To use OpenID I'd have to ask the user what Launchpad nickname they have, right?
[19:28] <cjwatson> OpenID 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:29] <cjwatson> When that process is done, it redirects back to your site by way of one of those query parameters.
[19:30] <cjwatson> (Of course you should find an existing library for this rather than rolling it yourself.)
[19:31] <cjwatson> Try going to e.g. https://myapps.developer.ubuntu.com/ and signing in there to see the flow.
[19:40] <Signum> cjwatson: What is the OpenID identifier for Ubuntu?
[19:40] <Signum> aka URL
[19:51] <cjwatson> Signum: You mean the endpoint URL?  https://login.ubuntu.com/
[19:51] <Signum> Great, thanks. I'll try that.