[scim] [Invalid Example] Country Attribute

Shelley <randomshelley@gmail.com> Thu, 12 May 2016 19:58 UTC

Return-Path: <randomshelley@gmail.com>
X-Original-To: scim@ietfa.amsl.com
Delivered-To: scim@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 6977D12B039 for <scim@ietfa.amsl.com>; Thu, 12 May 2016 12:58:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.699
X-Spam-Level:
X-Spam-Status: No, score=-2.699 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BrsNWTNHTkIX for <scim@ietfa.amsl.com>; Thu, 12 May 2016 12:58:39 -0700 (PDT)
Received: from mail-ig0-x232.google.com (mail-ig0-x232.google.com [IPv6:2607:f8b0:4001:c05::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7433812B011 for <scim@ietf.org>; Thu, 12 May 2016 12:58:39 -0700 (PDT)
Received: by mail-ig0-x232.google.com with SMTP id lr7so62316416igb.1 for <scim@ietf.org>; Thu, 12 May 2016 12:58:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=FkoMLxmbH7DInhk4UcyTJ9cI9mnbCDPAkft7pbhWF3g=; b=FIyo7d9Lf9p5/16FpD2bcsjdO856aszMA9eq1DcYUOJi7Ik/hT8z940iUYEQpptWe6 0u+ZOpmV6737XNc9IfYf76wgsxL8tA3pIK/NCkCConivvLmAplKcL1m4YCWMs4TCAqJ6 JUcAN+hjQyR1xeQQ59WO3hiWlPLmz0mQ9uhftZoHnL2k/hYwfIVkp0iQSYf4C/Uk5oVq bz9lsCd4bPpTPNZdIUVo+I4coAmrekBUPaD3EtojlY4KvjCyp5yXBdl0F731jzm4p0ZC dJ29vKq9BTB3X9AARQyV7HAjeFbzbJ9SPOBN9zQe0SdYw2uI+oJ6B4RNmuG5BVUc3hnW PNLw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=FkoMLxmbH7DInhk4UcyTJ9cI9mnbCDPAkft7pbhWF3g=; b=X19WPEBvPLceO4NYsC6RLWzTTPQiR3g1BUKDfBFKb3G49adTv65ouOCB028SukJESA f059QPtqnZbHrjxkv7EUBO3h8Bp2euVUksSxESZ1rsYakf82C5JHKlh7d0CRYxPVRa2R o2ckyGTSv+r/cKUYrkbea1hyMkWuXGpaQay//UaSpAhs0wUcUQM2DFejJeY9GTB0I+rK 9UsLvDkBHKPBQJxDOmjVHKpcaCoAo5Uxq7R6Ru5TsSYrAOqYTMeJ4JCRn3AlhJcYJqPU yxab5ieV5TaGADaSM6QAPjdGLawPwQwKi6giDZuVkfxQx/LRAYuQTUHj/lVWg8KJmFrX Kz3Q==
X-Gm-Message-State: AOPr4FXJEsXP9JY9vF2z4LlK85+xjosIU/vJJTN+gU6fLbhcNLir5Pwp3NC/K+JLDwtvhuGz0Dy6rKTMECQzow==
MIME-Version: 1.0
X-Received: by 10.50.16.163 with SMTP id h3mr28779357igd.49.1463083118796; Thu, 12 May 2016 12:58:38 -0700 (PDT)
Received: by 10.64.93.8 with HTTP; Thu, 12 May 2016 12:58:38 -0700 (PDT)
Date: Thu, 12 May 2016 14:58:38 -0500
Message-ID: <CAGUsYPzGfnCrCghqFJARh_=91=3UhnkE8=7PPOtqTB4Y6Urc-Q@mail.gmail.com>
From: Shelley <randomshelley@gmail.com>
To: "scim@ietf.org" <scim@ietf.org>
Content-Type: multipart/alternative; boundary="f46d04426cce92ef260532aa950f"
Archived-At: <http://mailarchive.ietf.org/arch/msg/scim/F4jbfcLUztag6A-84BWReIHYeSc>
Subject: [scim] [Invalid Example] Country Attribute
X-BeenThere: scim@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Simple Cloud Identity Management BOF <scim.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/scim>, <mailto:scim-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/scim/>
List-Post: <mailto:scim@ietf.org>
List-Help: <mailto:scim-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/scim>, <mailto:scim-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 May 2016 19:58:41 -0000

The SCIM 1.1 and 2.0 specifications mandate the use of the ISO 3166-1
"alpha-2" code format [1]:

> country  The country name component.  When specified, the value
>          MUST be in ISO 3166-1 "alpha-2" code format [ISO3166 <https://tools.ietf.org/html/rfc7643#ref-ISO3166>]; e.g.,
>          the United States and Sweden are "US" and "SE", respectively.
>
>
However, the User examples do not adhere to this requirement:

>   "addresses": [
>     {
>       "type": "work",
>       "streetAddress": "100 Universal City Plaza",
>       "locality": "Hollywood",
>       "region": "CA",
>       "postalCode": "91608",      "country": "USA",
>       "formatted": "100 Universal City Plaza\nHollywood, CA 91608 USA",
>       "primary": true
>     },
>     {
>       "type": "home",
>       "streetAddress": "456 Hollywood Blvd",
>       "locality": "Hollywood",
>       "region": "CA",
>       "postalCode": "91608",      "country": "USA",
>       "formatted": "456 Hollywood Blvd\nHollywood, CA 91608 USA"
>     }
>   ]
>
>
[1] https://tools.ietf.org/html/rfc7643#section-4.1.2
[2] https://tools.ietf.org/html/rfc7643#section-8.2