chromium/third_party/blink/renderer/modules/credentialmanagement/identity_standard_claims.idl

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

dictionary IdentityStandardClaims {
  // The standard identity claims is derived and kept consistent with the <form>
  // autocomplete spec.
  // https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#attr-fe-autocomplete
  // We are starting with the attributes that are currently supported, so many
  // of the attributes are left commented out to allow us to introduce them
  // incrementally, while still testing if the generalization will hold.
  // TODO(crbug.com/1400878): introduce the other attributes as needed.
  IdentityClaimRequirement name;
  IdentityClaimRequirement givenName;
  // IdentityClaimRequirement familyName;
  // IdentityClaimRequirement nickname;
  // IdentityClaimRequirement username;
  IdentityClaimRequirement email;
  // IdentityClaimRequirement sex;
  // IdentityClaimRequirement bday;
  // IdentityClaimRequirement language;
  // IdentityClaimRequirement phoneNumber;
  // IdentityClaimRequirement streetAddress;
  // IdentityClaimRequirement country;
  // IdentityClaimRequirement url;
  // IdentityClaimRequirement tel;
  // Age is neither in the OIDC Standard Claims nor in HTML, but maps better
  // than bday (HTML) / birthday (OIDC).
  // IdentityClaimRequirement age;
  // Picture currently follows the OIDC Standard Claims
  // https://openid.net/specs/openid-connect-core-1_0.html#StandardClaims
  // Which we take as equivalent to photo from the HTML standard.
  // We use both to keep backwards compatibility with the AccountList
  // dictionary.
  IdentityClaimRequirement picture;
  // IdentityClaimRequirement photo;
};