[OAUTH-WG] Re: OAuth Client ID Metadata Document

Dick Hardt <dick.hardt@gmail.com> Mon, 08 July 2024 18:03 UTC

Return-Path: <dick.hardt@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 C462FC1E045C for <oauth@ietfa.amsl.com>; Mon, 8 Jul 2024 11:03:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wOL02kT054Vw for <oauth@ietfa.amsl.com>; Mon, 8 Jul 2024 11:03:27 -0700 (PDT)
Received: from mail-yb1-xb35.google.com (mail-yb1-xb35.google.com [IPv6:2607:f8b0:4864:20::b35]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DF550C1E0453 for <oauth@ietf.org>; Mon, 8 Jul 2024 11:03:27 -0700 (PDT)
Received: by mail-yb1-xb35.google.com with SMTP id 3f1490d57ef6-dfab4779d95so4515767276.0 for <oauth@ietf.org>; Mon, 08 Jul 2024 11:03:27 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720461807; x=1721066607; darn=ietf.org; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=pUb/6rD0rPF4rulMZes/tt/LebLz1LCWHIPkjt9A3bU=; b=DxBVSoWlSQ7dxvtigvbkSucKAznQDhhS5qELOIcQP4rD9PA8HrmVhULipGKdridKuL OF+UnaViAmEd8m6fMe84v4pYq8CeyITgnMoCQbxelu6i6eIqfNskJUUJ089UdM2fDdzt lOHk+PxgRoMpQ6oJOJHyzBtYnZO9xr6HhkWHyX1Fmoyfpffl4nihhPrSmJGIitr9tBnA yqu7qPuq20zxCV6uqCJp1dmnZsNoE4bB++v4WQe3pxxc/Vtu+nc+OrkhoX1lCoauRx/4 4WWzFO5ZVPLWmviC3mXrgGEb5IZMcCLd92JwbCRudbLDCb+BCpYuyNiW8s1YoZOF76jb 5Lcw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720461807; x=1721066607; h=cc:to:subject:message-id:date:from:reply-to:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=pUb/6rD0rPF4rulMZes/tt/LebLz1LCWHIPkjt9A3bU=; b=da3QVG1nSV14cHhOoyn0qGHYn8R44oUXKsFRjrPb+vHw6d5urnuwtwsOyDHWVLKgge HNcf6rp0/033IgYSTWY3GlkiIDD7XC6re8+TfTeuTR5kjoOOSMHwj8Ockw0xY1uR2m4s Un2TX85BacM1hQWS6SZdENQDBxj0HQ5YHbRYveYghBgXGJpdOHia+Q6d9Bk9CWAM9Dgk 8xuztSlNM8Kx7wMMlH6f49FyWiavLbktomIv732bFFb1rGd91snk52KIN6hDggloX/xC 0yjcczgGVObE7tPtRriLNt28xhUKQqC+4xpDL0K73PGuFFR1qw+53va+xDvTduBOFzzQ NivA==
X-Forwarded-Encrypted: i=1; AJvYcCUsQntZxaSwFJenJDQ6zVU8MkCQhgmaHt2JUo1lqM1vIGr+/KIx2WsDfVE0aZW+t1oVS7vLimnbhG9MI8x+sQ==
X-Gm-Message-State: AOJu0Ywk02wSI4TKaFc9764gZeFcKtXy0byE2UEd4lWUoymqekbb+jaa Zl/xrWlojq3R4Kj3VYZ5oz6t32kKbzdEloilC1XupjToZkvL27QmoOSKdpBoLSzrD/u2kAs9csV j0d4fmVYXiJmi6BGRPLUVGRSdQ9F1Gkra
X-Google-Smtp-Source: AGHT+IHJX/+tYOzBA6ZzaVakDwsA5Ul7txbRFRMoKFF/EhkT8xvflUVUevNfYpomQw9txwRzwbjPheagQlm52d7iNC8=
X-Received: by 2002:a25:a291:0:b0:e03:6156:3435 with SMTP id 3f1490d57ef6-e041b15b010mr544408276.57.1720461806708; Mon, 08 Jul 2024 11:03:26 -0700 (PDT)
MIME-Version: 1.0
References: <CAD9ie-uNbO-fJA9XObCQm5+HWiLVxbKVPbL77fVfDSOHqOJfCQ@mail.gmail.com> <CAGBSGjrU03__4Wt+PiDuR5Z=b5y7GnBwzOiibE1v_Y11NV+Fpg@mail.gmail.com>
In-Reply-To: <CAGBSGjrU03__4Wt+PiDuR5Z=b5y7GnBwzOiibE1v_Y11NV+Fpg@mail.gmail.com>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Mon, 08 Jul 2024 11:02:49 -0700
Message-ID: <CAD9ie-u3BSto3+ATAo-9S6tiPGi6JPZQsUOzAx30CfR+3i=yRw@mail.gmail.com>
To: Aaron Parecki <aaron@parecki.com>
Content-Type: multipart/alternative; boundary="000000000000d6b059061cc03af5"
Message-ID-Hash: CYVVSKC2RIR7JYZCKIGDMFVBVBS5QBXP
X-Message-ID-Hash: CYVVSKC2RIR7JYZCKIGDMFVBVBS5QBXP
X-MailFrom: dick.hardt@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-oauth.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: emelia@brandedcode.com, oauth@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Reply-To: Dick.Hardt@gmail.com
Subject: [OAUTH-WG] Re: OAuth Client ID Metadata Document
List-Id: OAUTH WG <oauth.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/OGs_MigRNbemcmsk4BklOUm9YnQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/oauth>
List-Help: <mailto:oauth-request@ietf.org?subject=help>
List-Owner: <mailto:oauth-owner@ietf.org>
List-Post: <mailto:oauth@ietf.org>
List-Subscribe: <mailto:oauth-join@ietf.org>
List-Unsubscribe: <mailto:oauth-leave@ietf.org>

Inline ..

On Mon, Jul 8, 2024 at 9:06 AM Aaron Parecki <aaron@parecki.com> wrote:

> Thanks Dick, I hadn't gotten to post this to the list yet, but thanks for
> kicking off the discussion!
>
> FYI there are already a few live implementations of this, and some
> additional in-progress implementations. There is also some overlap between
> this and an application of FedCM, which is where some of the initial
> implementation work has begun. I'll share more details on this and the
> FedCM work at IETF 120.
>
> > 1. If an AS supports both registered, and unregistered clients, is there
> any guidance or requirements on differentiating between them such as NOT
> issuing other identifiers that start with 'https"?
>
> This is probably a good call-out. I am unsure about how many AS's
> would actually support both types of clients in practice though.
>

We (Hellō) will do both presuming this approach resonates with developers.


>
> > 2. From a security perspective, I worry about the redirect URIs being
> any arbitrary URL -- perhaps that they need to start with the client_id? Is
> localhost supported as a redirect URI.
>
> There will likely be some special handling for localhost client IDs and
> redirect URIs, particularly for development clients. There is some
> discussion about this happening on GitHub here:
> https://github.com/aaronpk/draft-parecki-oauth-client-id-metadata-document/issues/12
>
>

I added a comment there.


>
> For the non-development use cases, I think we should further discuss
> whether the limitation of the redirect URI starting with the client ID is
> helpful or not. Another set of use cases is native apps using custom URI
> schemes or even app-claimed HTTPS URLs which might have some more edge
> cases to consider.
>

An app-claimed HTTPS URL seems to be the secure path going forward for
native apps. What would be edge cases around that?


>
> > 3. A number of the parameters in dynamic client registration are a
> negotiation between the client and the AS.
>
> Correct, this is not a negotiation anymore, this is a statement from the
> client about its properties, which the AS can either accept or reject
> during an authorization.
>

Which means a bad use experience if it is rejected.


>
> > 4. Along those lines, why are you pointing at 7591 rather than the list
> in IANA?
>
> Good call, we should update this to point to the IANA registry.
>
> > 5. Along those lines, it may be useful to recommend which of those
> properties are useful and why. ... The one bit of client_id_metadata_document_supported
> will unlikely not be enough to have a successful flow unless there is a MTI.
>
> I think it would be a good exercise to see if there is a MTI subset for
> interoperability. I'll track this on GitHub for further discussion:
> https://github.com/aaronpk/draft-parecki-oauth-client-id-metadata-document/issues/15
>
> > 6. Did you consider signing the metadata as a JWT as being one of the
> content types that could be returned?
>
> It occurred to me, but I am not sure how valuable that actually is. The
> metadata is fetched over HTTPS, so signing it doesn't provide any
> additional integrity there. It could provide non-repudiation of the
> metadata, except that in order to do so it would have to be signed with a
> key that could later be proven to be from the client as well. Since this is
> primarily designed to be used by clients with no prior relationship with
> the AS, it is unclear how the provenance of the public key would be proven.
> I think this would require PIKA to be useful:
> https://www.ietf.org/archive/id/draft-barnes-oauth-pika-00.html
>

I don't have a good use case for it. Was wondering if you had given the
text about different content-types.

/Dick