[OAUTH-WG] Mail regarding draft-ietf-oauth-discovery

Andres Torres <janthoe@gmail.com> Tue, 10 July 2018 18:19 UTC

Return-Path: <janthoe@gmail.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5D7DC131028 for <oauth@ietfa.amsl.com>; Tue, 10 Jul 2018 11:19:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 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_NONE=-0.0001, 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 etPZWdTPMr1f for <oauth@ietfa.amsl.com>; Tue, 10 Jul 2018 11:19:40 -0700 (PDT)
Received: from mail-oi0-x235.google.com (mail-oi0-x235.google.com [IPv6:2607:f8b0:4003:c06::235]) (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 586EA130DCE for <oauth@ietf.org>; Tue, 10 Jul 2018 11:19:40 -0700 (PDT)
Received: by mail-oi0-x235.google.com with SMTP id q11-v6so18874548oic.12 for <oauth@ietf.org>; Tue, 10 Jul 2018 11:19:40 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=FgQyyJyxM+762z5CCeoD+w0uA+E8+3EnfYjCHOC+oIA=; b=qUEW9xa8eYcLsIQQy1DPtz1163kzkxkR4RQNxPQALH7oPmWVqIQ/tJ/TIYxn9rzFwi tuT54XwYP0456cfli7Gr0L0hp4qVsL92xNBGEBoX+hW6/LmDZ2DXRpuB3Kf+rYUir5rA TSu3JrQs0td62qGXVunBfYec0r6wpkTbOZiUuJGG+V+yrlCOO9d8kpW+bbjPJvIUS620 v+99XIfagbPL14avqxj+Taz9fzjsHFB9+pHSfMfN7aCpiBUy74t3TPTG2anYfMmygKeM cbaCmAtEjbj4aZkG7aspl7ovQL760Pr/HN6GLQrDHU8n7ABCeYmQw+7uXUQq1mjJgeKV LqBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=FgQyyJyxM+762z5CCeoD+w0uA+E8+3EnfYjCHOC+oIA=; b=C8giA0FifB2dPr/2i2d+iq0Rh3xIFEoBH1xwyVwv3bLEkdJWlXNJa73F+EW5usKnKa fqYoN2pwefIYlricrZ3oOepil3QE8TN1dj7GT1PRB021T1pgTBnr1tOOoChf12qIjyUB yoeqRTluApfnKiC0yrWC4DrVw3fcnCp6EOjQt6yrqiw0XL7TZEBXr+RROf/j8GXaKIzG JwQwv+FuZxl2kyokAEjBY2oaoWi5juv/jfimL7yb8P7VvdC7lYeMGi+c8I/1Y8HKgD7k cdChFN68JqhNrEriD0YfSoE7eh489cIg7F6xqzZ48s/CbDj5kegUOSTFpuyjdCJ+rW6f zkCw==
X-Gm-Message-State: APt69E37A3JRvyMdNXmjQkFDyyKKo5XdhQvepHxhKy0tuSr3zqGiPbsW n/QMzFEDnQTE7n4/iVfoh9jatJ2+UbNSzzfo3l1kMA==
X-Google-Smtp-Source: AAOMgpeXVReAP1W1Iacl2cBOqQ/dFvNq5PT+7yp9mYT37G/YnCPFH4wv6J6lV0EQKAqehQG7zDV44SN0W5lVWoXn/xc=
X-Received: by 2002:aca:cf97:: with SMTP id f145-v6mr30070871oig.131.1531246779648; Tue, 10 Jul 2018 11:19:39 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a9d:2369:0:0:0:0:0 with HTTP; Tue, 10 Jul 2018 11:19:19 -0700 (PDT)
From: Andres Torres <janthoe@gmail.com>
Date: Tue, 10 Jul 2018 14:19:19 -0400
Message-ID: <CAEdHPxrSNT0N4CiaDv+rzhh44m0g4zqUNwFq85tp6kMeVC7h-w@mail.gmail.com>
To: oauth@ietf.org
Content-Type: multipart/alternative; boundary="0000000000005d4fa70570a92cdc"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/JDY2vxJWbDoW_pzUVwmghfS2Jao>
Subject: [OAUTH-WG] Mail regarding draft-ietf-oauth-discovery
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: OAUTH WG <oauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/oauth>, <mailto:oauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth/>
List-Post: <mailto:oauth@ietf.org>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/oauth>, <mailto:oauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 10 Jul 2018 18:19:43 -0000

Regarding RFC 8414 (Proposed Standard) Section 3.1.  Authorization Server
Metadata Request:

   If the issuer identifier value contains a path component, any
   terminating "/" MUST be removed before inserting "/.well-known/" and
   the well-known URI suffix between the host component and the path
   component.  The client would make the following request when the
   issuer identifier is "https://example.com/issuer1" and the well-known
   URI suffix is "oauth-authorization-server" to obtain the metadata,
   since the issuer identifier contains a path component:

     GET /.well-known/oauth-authorization-server/issuer1 HTTP/1.1
     Host: example.com



In terms of API design the final result is confusing. The resource
/.well-known/oauth-authorization-server becomes a collection of resources
where issuer is a subresource. However,
/.well-known/oauth-authorization-server should be a subresource of the
issuer/tenant. It is my understanding that .well-known is a prefix for
known resources in a given service. Multiple instances of a service (ie:
tenants) can be hosted using the same hostname in the form
{issuer|tenant-identifier}/.well-known/{known-resource}. This way a proper
resource hierarchy can be maintained in the URI namespace and heterogeneous
services can be deployed under the same hostname.

Thanks in advance for you time.

Cheers,

Andres Torres