Re: [GNAP] Authentication mechanisms discovery

Dick Hardt <dick.hardt@gmail.com> Mon, 24 August 2020 16:06 UTC

Return-Path: <dick.hardt@gmail.com>
X-Original-To: txauth@ietfa.amsl.com
Delivered-To: txauth@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EE7AB3A0F8D for <txauth@ietfa.amsl.com>; Mon, 24 Aug 2020 09:06:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.196
X-Spam-Level:
X-Spam-Status: No, score=-0.196 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_FONT_LOW_CONTRAST=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 71cVmS9ubtKb for <txauth@ietfa.amsl.com>; Mon, 24 Aug 2020 09:06:01 -0700 (PDT)
Received: from mail-lj1-x241.google.com (mail-lj1-x241.google.com [IPv6:2a00:1450:4864:20::241]) (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 C05473A0D72 for <txauth@ietf.org>; Mon, 24 Aug 2020 09:06:00 -0700 (PDT)
Received: by mail-lj1-x241.google.com with SMTP id v4so10305927ljd.0 for <txauth@ietf.org>; Mon, 24 Aug 2020 09:06:00 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=hP88vLxShlBtMsueNRc5yZTXQxOddqOC94ShTXolEno=; b=QFa4k4aquzE2DHYNjQxBBmZB4yyQnyWqI4uPL2EFSP8fHhz9NSNIGnxEFC95m0ubt3 44DBXm6Y4zeX1vnn+rJchXEu0Qvhhc9o8TkldBqCP0kg3kBV2GM/Mj3JGwuglVeWy6EG treDN2RBe8/sNct6Q9ZRqZGnTdoyfr3FrVDbkpDcdqVTcCKnSCcsm05M1czOy4/6NxQT qJN2GrX/N8WAYNJLRn83seh0/+LQ/5zsDycNAEa5N+JmfMFO5ZdsgHpSzUy6ejEDMTLe nkIMvOJHPgtuyBJNNdzuOmoc0AdYCvh7pBSt/G2r1j/uWRI99XyimAtk4bCNGHgdNeTq CZyw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=hP88vLxShlBtMsueNRc5yZTXQxOddqOC94ShTXolEno=; b=KdG0+MWkX75+54Fx+mLASXH3yxj6hD78CZAa3SfzcvnxXZe4bnfv3pF4/qM7iVK+IV jp13mG5TVms/hcKCOBZ6xJKj+C5n9K/J67V6Cr1K83o5SHnYAU++s/L4jhAHBgy9pWc4 yJ6YH/aBHZGs1OS/OtCBMizbl6GowFzZu1acrNPRPplqrEaDISlJkRqJpPEqcvpyRhVK QImwr+ES8DRLW/OD4HXeYKyeAbJi1JRPFJVZVVwqA/OzXWMUukgBxGs2I0R7MPrrzBno nLrn8apIP+L9gM78I9B+FJ5Yt+8Ui/kKhyitQ3EZPsxZpKH8ORDQYZ+uZjrgw/0177l7 TWvg==
X-Gm-Message-State: AOAM531XICaDGMICnz1nroU6WhJs6rBsnyuaPUT7d5F3u82SKmnTdEZ0 +RMdxa169j204/QFwPC9sOumeAAYZLmfr6ZMaoM=
X-Google-Smtp-Source: ABdhPJwfSKpHG8ngVbyce0imk+/JBXwMwxk3h1VmSjocdXXVolqII1N1RLfgFQaT70FmzOHrgXW8gxMm06rjQOhCLe4=
X-Received: by 2002:a2e:a16f:: with SMTP id u15mr3138040ljl.5.1598285158508; Mon, 24 Aug 2020 09:05:58 -0700 (PDT)
MIME-Version: 1.0
References: <fdf69c9e-6950-b2d2-f889-dd4219fec6f1@free.fr>
In-Reply-To: <fdf69c9e-6950-b2d2-f889-dd4219fec6f1@free.fr>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Mon, 24 Aug 2020 09:05:22 -0700
Message-ID: <CAD9ie-tRG5F=z_Py3RVFOjELPYcGxQPJxepzO_rFQg=XSG+Yaw@mail.gmail.com>
To: Denis <denis.ietf@free.fr>
Cc: "txauth@ietf.org" <txauth@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001f6d2905ada1c313"
Archived-At: <https://mailarchive.ietf.org/arch/msg/txauth/8MGbAYd5EuoUrc8A8FDW0FLoQ8Y>
Subject: Re: [GNAP] Authentication mechanisms discovery
X-BeenThere: txauth@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: <txauth.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/txauth>, <mailto:txauth-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/txauth/>
List-Post: <mailto:txauth@ietf.org>
List-Help: <mailto:txauth-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/txauth>, <mailto:txauth-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 24 Aug 2020 16:06:03 -0000

Hi Denis

While it is an interesting idea to use the OPTIONS method at the RS, the
standard way to indicate authentication mechanisms is with a 401 HTTP
response per
https://tools.ietf.org/html/rfc7235#section-3.1

And then information about how to authenticate may be in the HTTP
Authorization header.

This allows an RS to respond to any request including an OPTIONS method
call.

/Dick


ᐧ

On Mon, Aug 24, 2020 at 1:16 AM Denis <denis.ietf@free.fr> wrote:

> Hi Dick
> *, *
>
> The following comments have been elaborated after an analysis of your
> draft: draft-hardt-xauth-protocol-13.
>
> *1 ) Authentication mechanisms discovery at the GS*
>
> Sections 3 and 3.7 from draft-hardt-xauth-protocol-13 are proposing to
> support an HTTP OPTIONS request which would be the first request
> when talking to a GS. The goal is to be able to query the authentication
> mechanisms supported by the GS. This would indeed be very useful.
>
> The HTTP OPTIONS request has been first defined in RFC 2616 and refined in
> RFC 7231 (see https://tools.ietf.org/html/rfc7231#section-4.3.7).
>
> RFC 7231 mentions:
>
>       A standard format for such a representation is not defined by this
> specification, but might be defined by future extensions to HTTP.
>       A client that generates an OPTIONS request containing a payload body
> MUST send a valid Content-Type header field describing
>       the representation media type.  Although this specification does
> not define any use for such a payload, future extensions to HTTP
>       might use the OPTIONS body to make more detailed queries about the
> target resource.
>
> RFC 7231 also mentions:
>
>       A server generating a successful response to OPTIONS SHOULD send an
> header fields that might indicate optional features
>       implemented by the server and applicable to the target resource,
> including potential extensions not defined by this specification.
>
> However, two types of authentication are possible: user authentication and
> client authentication. If both are supported by the GS, it would be
> possible
> to address this concern either by returning two lists of authentication
> methods or even better by using two different Content-Type header fields
> describing
> the representation media type, since the client is knowing whether it is
> acting or not on behalf of a User.
>
> *2) Authentication mechanisms discovery at the RS*
>
> This HTTP OPTIONS request should also be supported by a RS. When a client
> first contacts a RS, it does not necessarily know the authentication
> methods that are *currently* supported by the RS. This means that the
> same request as the one used for the GS should be available for a RS as
> well.
>
> Denis
>
> --
> TXAuth mailing list
> TXAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/txauth
>