[OAUTH-WG] Comments on draft-jones-oauth-resource-metadata-00

George Fletcher <gffletch@aol.com> Thu, 04 August 2016 17:10 UTC

Return-Path: <gffletch@aol.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 3A1CC12D641 for <oauth@ietfa.amsl.com>; Thu, 4 Aug 2016 10:10:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.187
X-Spam-Level:
X-Spam-Status: No, score=-3.187 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RP_MATCHES_RCVD=-1.287, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=mx.aol.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 D7SzIIPb4zO2 for <oauth@ietfa.amsl.com>; Thu, 4 Aug 2016 10:10:48 -0700 (PDT)
Received: from omr-m005e.mx.aol.com (omr-m005e.mx.aol.com [204.29.186.5]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5084B12D5C9 for <oauth@ietf.org>; Thu, 4 Aug 2016 10:10:48 -0700 (PDT)
Received: from mtaout-aaf02.mx.aol.com (mtaout-aaf02.mx.aol.com [172.26.127.98]) by omr-m005e.mx.aol.com (Outbound Mail Relay) with ESMTP id 52571380008A for <oauth@ietf.org>; Thu, 4 Aug 2016 13:10:47 -0400 (EDT)
Received: from [10.172.104.61] (unknown [10.172.104.61]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mtaout-aaf02.mx.aol.com (MUA/Third Party Client Interface) with ESMTPSA id 4ACAD38000084 for <oauth@ietf.org>; Thu, 4 Aug 2016 13:10:46 -0400 (EDT)
To: "oauth@ietf.org" <oauth@ietf.org>
From: George Fletcher <gffletch@aol.com>
Organization: AOL LLC
Message-ID: <e544a62e-3499-dc32-ad1d-ed3f77e60495@aol.com>
Date: Thu, 04 Aug 2016 13:10:48 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="------------DFB08887E7183DC08A424E5F"
x-aol-global-disposition: G
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mx.aol.com; s=20150623; t=1470330647; bh=V9qVcYdzeUo1zIvPPyS1wUi1P7R3vX7yre4M6i80mLQ=; h=From:To:Subject:Message-ID:Date:MIME-Version:Content-Type; b=5SP9dI+9zdl8IqV4WDzSo3QUpC2IyLyqeRdrfUS6GZpFUAjgWcUwiUG+O5FIBrwwu YK0cQZ1gDyX4dMUoMEYQD5Crsb8CE8NQ9t0xPovpo/b5WN1SNvGSQ0CfS0stQc+LKU ImrIVNrRAWv9+CXGX9J+G6zrn2KpEcz1Zf2Ww4Ng=
x-aol-sid: 3039ac1a7f6257a377162440
X-AOL-IP: 10.172.104.61
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/IdJFSM-T0c94j43bj-AUEdGg-7g>
Subject: [OAUTH-WG] Comments on draft-jones-oauth-resource-metadata-00
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.17
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: Thu, 04 Aug 2016 17:10:50 -0000

Mike, thanks for drafting and publishing these specifications. I have a 
couple of questions regarding the draft-jones-oauth-resource-metadata-00.

1. Is a "protected resource" a server? or an actual API endpoint. The 
non-normative examples use /.well-known/oauth-protected-resource and 
/resource1/.well-known/oauth-protected-resource which is a little 
unclear. I think of "resource" as something like "Mail" or "Instant 
Messaging".

2. Assuming that "protected resource" means an actual API endpoint, what 
is the expected location of the metadata for a fully REST compliant API 
where the full URL points to a specific resource and not the concept of 
a general API.

    Using an example of an IdP that supports user management
    capabilities. Let's assume the IdP supports a REST API of...

         CREATE -- POST https://idp.example.com/tenant/<tenantid>/users
         READ -- GET
    https://idp.example.com/tenant/<tenantid>/users/<userid>
         UPDATE --
    PUThttps://idp.example.com/tenant/<tenantid>/users/<userid>
         DELETE --
    DELETEhttps://idp.example.com/tenant/<tenantid>/users/<userid>

    Assuming there are 3 tenants (tenantA, tenantB, tenantB) and lots of
    users. Where does the .well-known/oauth-protected-resource get added?

        ??
    https://idp.example.com/tenant/tenantA/users/1232234/.well-known/oauth-protected-resource

    In this case would not the oauth-protected-resource metadata be
    duplicated across the set of tenants and users? Is that the desired
    behavior?

Thanks,
George