LEP/OpenIdRoadmap

Not logged in - Log In / Register

OpenId Roadmap

Bug 210943 is the overarching bug about this.

Steps required to turn Launchpad into a normal OpenId Consumer.

As a user
I want to authenticate using my preferred OpenId provider
so that I have fewer credentials to manage

Rationale

A number of users would like to use their preferred OpenId provider rather than the Canonical OpenId provider (CanonicalSSO).

This work has not been scheduled. Launchpad is currently in a 'good enough' state, having offloaded authentication to the CanonicalSSO, and the authentication system contains a lot of tech debt that needs to be cleaned up.

Stakeholders

Our users.

ISD, maintainers of the CanonicalSSO.

Constraints and Requirements

Must

Nice to have

Must not

What MUST it not do?

Subfeatures

Steps 1-4 are tech-debt, irrespective of whether we follow this plan.

  1. Tear out OpenId Provider code. Implement simple Developer/Test OpenId Provider. 629167 (./)

    The OpenId Provider we currently use for development and testsuite environments is needlessly complex, from when Launchpad was itself an OpenId Provider. We should tear out all of this code, implementing a minimal OpenId Provider. The login screen can just be a single form containing:

    • a drop down list of the email addresses in the EmailAddress table.

    • a text box to use an email address not in the EmailAddress table.

    • a text box to override the OpenId Identity to use.

    • a login button.
    • a fail to login button.
    Doing this, we remove a load of code. It allows us to drop the

    AccountPassword and numerous legacy OpenId tables. It allows us to refactor the Account/EmailAddress/Person/OpenIdIdentifier parts of the data model.

  2. Improve Launchpad/CanonicalSSO Integration. 629169

    Currently, we mirror selected Launchpad information to the lp_* 'mirror' tables. These tables are then replicated using Slony-I to the CanonicalSSO databases. At a minimum, the CanonicalSSO systems need to stop using the lp_Account

    table to map OpenId Identifiers to Launchpad Person data (such as TeamParticipation). The CanonicalSSO could use a mirror the Launchpad EmailAddress information to map CanonicalSSO accounts to Launchpad information, or some entirely different mechanism allowing us to seperate the CanonicalSSO and Launchpad databases into separate replication clusters.

  3. Simplify the Account table. 629170

    Drop the displayname column on the Account table. Consider dropping the

    Account table entirely, linking OpenIdIdentifier directly to Person.

  4. Drop EmailAddress.account 629172 (./)

    Remove all Account and EmailAddress records not linked to a Person, reducing the number of Account records on the system by 90%. Drop the redundant EmailAddress.account link.

  5. Switch to using OpenId Identity URLs.

    Currently, we are storing just the token used to generate the OpenId Identity URL. We should store the full URL.

  6. Spec and implement workflow for signing up to Launchpad using a 3rd party OpenId Provider. Spec and implement workflow for attaching a 3rd party OpenId Identity to an existing Launchpad Account. Implement, rollout etc.

Workflows

What are the workflows for this feature? Even a short list can help you and others understand the scope of the change. Provide mockups for each workflow.

You do not have to get the mockups and workflows right at this point. In fact, it is better to have several alternatives, delaying deciding on the final set of workflows until the last responsible moment.

Success

How will we know when we are done?

How will we measure how well we have done?

Thoughts?

The following are notes about openid and identity from a conversation Curtis and Gary had recently. They are recorded as a brain dump in case they are useful later. Gary's writing this bit, so mistakes are his.

We have several separate user interfaces to Launchpad: ssh + bzr; oauth + webservice; openid + browser; and email, with additional power provided by GPG signing. Each one of these has some method of providing Launchpad with a concept of trusted identity: ssh, openid/oauth, email, and GPG. Each should enable Launchpad to *uniquely* associate the input with a "Person" record.

One notable thing about this for our discussion is that having access to an email account alone is sufficient for performing some actions on Launchpad. Alone, it is partially trusted. If you have GPG and email, you can do even more. To reiterate, email access is as good as openid for some activities.

Openid relates to email because openid providers can include email addresses in their authentication messages. This can be a source a source of confusion.

We see examples of this confusion with our trusted Canonical openid provider (see https://answers.launchpad.net/launchpad-foundations/+question/136307 and https://answers.launchpad.net/launchpad-foundations/+question/135971 for a couple of examples I can pull up in under a minute). Users don't understand that the systems are separate, or that setting a preferred email in Launchpad has little or nothing to do with the email they use to log into SSO. When they learn that they have to manage emails separately, they are understandably annoyed.

Perhaps this confusion and annoyance will be less when the division between openid provider and Launchpad is greater. To make the division greater, we should do a few things.

The openid-provided emails also give us some chances for automation. The automation can add to the confusion. We will first talk about the automation possibilities, and then discuss how they can add to confusion.

An openid authentication to Launchpad can have one of the following three characteristics.

The scenarios that we'll consider are these.

[Curtis: Launchpad does not track user status or origin via email address. The PersonCreationRationale knows this, which can be observed by checking the person the email address is associated with. The Person's AccountStatus will state if the user was deactivated.]

In the KNOWN EMAIL scenario with a TRUSTED openid provider, we have two trusted sources of emails. We can deduce that they are the same person, and simply connect the openid token with the existing person. Unfortunately this can increase the perception that the SSO and Launchpad are the same code base. Adding a step to confirm the connection, or at least a notification that it has happened, may help.

If we are in the KNOWN EMAIL scenario with an UNTRUSTED provider, if the user wants to assert that they are the same person, I believe that we will need to do something like a merge of profiles: we will need to send out emails to some or all of the Launchpad emails to have them approve that the openid can be used for the account.

Note generally in the KNOWN EMAIL scenario that, if the trusted, openid-provided email address is that of a team, we must not associate it (556680).

With a KNOWN UNVALIDATED EMAIL, I don't quite know what to do and I don't think Curtis and I discussed it.

With a KNOWN DEACTIVATED EMAIL, this is pretty much the same as what we should do if someone returns with a known openid for a deactivated person. Previously, the deactivation has made the emails unverified (per Curtis' note below, this may not be true; I don't understand yet). We should verify with the user that they want to reactivate their profile (that is, the Person record) (we don't right now). If so, we can automatically verify emails from TRUSTED providers; for UNTRUSTED providers, as with NO EMAIL providers, we need to get email verification again before we can reactivate the account.

[Curtis: [A] person is active when there is 1 email address in EmailAddressStatus.PREFERRED. A deactivated user has 1 or more addresses in EmailAddressStatus.VALIDATED. Users were implicitly reactivated when they reset their password by setting the address used by the LoginToken as EmailAddressStatus.PREFERRED. The reset password scenario is not possible with OpenID, but the user should enter into an explicit reactivate profile scenario that uses LoginToken to verify the address the user wants set as preferred.]

With a NEW EVERYTHING scenario, Curtis has convinced me that we should ask users what to do before we create a new profile, and warn them that, if they expected to log in to an existing account, they need to use an older email address. We have gotten several confused users thinking that we had deleted their accounts because they logged in with a new or different email address.

[When Lp switched to OpenID, Launchpad lost the path to create profile LoginToken scenario. This seemed like a gift since users could use Lp much quicker. We can now see the gift is cracked, because there are cases where the user really should know he is setting up a profile, and know that Lp needs more than an email address to do many actions. Lp trusts email addresses from Ubuntu SSO, but this will not be the case with other OpenID providers -- many users should enter a profile setup workflow and start by validating their email address.]

Other things to note:

LEP/OpenIdRoadmap (last edited 2012-02-14 00:12:16 by wgrant)