mozilla/picl-idp — pull request #275 by dannycoates (2013-11-12 19:01:04+00:00)
Title: Signed certificate format: What is the principal?

When issuing certificates for FXA, what should the `principal` be?

As the [specs say](https://github.com/mozilla/id-specs/blob/prod/browserid/index.md#identity-certificate), the principal is a JSON object that indicates the type of principal, e.g., `{"email": "ludmilla@example.com"}`.

For FXA certificates, we may wish to issue a principal that contains the unique uid instead, so that it remains the same in the event of the user changing his or her email.

What should this look like?

Related questions include: What concerns for backwards compatibility do we have for existing services (e.g., Marketplace)? What does this do to the verifier? In the future, would we share different information in the principal with third-party apps?