Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-reciprocal-00.txt

Dick Hardt <dick.hardt@gmail.com> Tue, 17 July 2018 16:01 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 CC037130E27 for <oauth@ietfa.amsl.com>; Tue, 17 Jul 2018 09:01:20 -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 XBvEBtteH8zq for <oauth@ietfa.amsl.com>; Tue, 17 Jul 2018 09:01:17 -0700 (PDT)
Received: from mail-pf0-x229.google.com (mail-pf0-x229.google.com [IPv6:2607:f8b0:400e:c00::229]) (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 96155130DCA for <oauth@ietf.org>; Tue, 17 Jul 2018 09:01:17 -0700 (PDT)
Received: by mail-pf0-x229.google.com with SMTP id d14-v6so728467pfo.3 for <oauth@ietf.org>; Tue, 17 Jul 2018 09:01:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=mA8ZbMqPh4YpLrsgSxOxWltSo98r2Zx/Z8K35Ai2KvA=; b=CH+SQslPCWvzVFijOY1UodhmA5oWfEunJzrd0wQMQnW6p0SvWis1f4aUID4LjTLmrG 9FcanDoXE4jigvaV/KKze48vVoG67sxo4mgkazio4Ruc1VHY9IRhmrS+T4Qa/TkYgn2/ Ss4WbWg5NrpRj5eKnZGAk9eKuTjTaQnDtL/mKRIXRtcTZ2o7gV4kDQrPgtXCIUEpbb2t QX20O1sSVUH3fJDVBSYRFRox/WQf8GqhwLzWbaMjCZfxQRAU87qY01xPMP09lyzJR9t9 guPurvXUuN6thVoi5+8zvwtgMMd0Q+pvKFKHBTBPi72hWlodgpIOcTEGWHsh8eaTbA6j i1Kg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=mA8ZbMqPh4YpLrsgSxOxWltSo98r2Zx/Z8K35Ai2KvA=; b=lHzLXROeXx0dKrGUdDOmRiQtoh84BrNrVBC6qdl3NqqUrnP5o8vyAIpPz8Th4/n0CY sZBqKAcZNovdZcq0R3dJS19XehaM2sDRPwsl99zz2FUx2qbROyHnBkpY5v60nWRrbu/w Ip6bcicFuhGR9uHHghQDEzQILUL+8usiV5bMw01g5mBTDURROrV0LVZqrmaDkthT33uC AxZ2q3jN6mNpMbovsb/EU1sWpBv14S11BOZA2JZpF9oPrm85a1OFv9r/WCS0SfbAHa/5 ePnq8anpSWrvOhpqmDxmgctQj3+LhTbW40n4k2CI+CrKcbFRk5PJF3wQutxc9yI0FkVg Bkig==
X-Gm-Message-State: AOUpUlE1JJuIYExRLVrS216CZshM+IutgdHkWm9hl/Y71RuLOL6tw6Y1 eQCej6BcUQum3Q4h+cU0ufpXyJJBt2CX1HSXG5w=
X-Google-Smtp-Source: AAOMgpfrXjQDtHc5e0N4IaVq8pf8m4x5YdXTbUh3VEMF6dcSB6Q88BYOoYFa//tG/ihVNrqib8XoYCdolqA7H1KTecI=
X-Received: by 2002:a63:a347:: with SMTP id v7-v6mr2106170pgn.182.1531843276959; Tue, 17 Jul 2018 09:01:16 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a17:90a:9ce:0:0:0:0 with HTTP; Tue, 17 Jul 2018 09:00:56 -0700 (PDT)
In-Reply-To: <52D0886F-C7B3-4F98-B1CE-70E8406656D5@lodderstedt.net>
References: <152719369843.5001.6781345939306593672@ietfa.amsl.com> <52D0886F-C7B3-4F98-B1CE-70E8406656D5@lodderstedt.net>
From: Dick Hardt <dick.hardt@gmail.com>
Date: Tue, 17 Jul 2018 12:00:56 -0400
Message-ID: <CAD9ie-vZ8TcjUUZLzTnanXy_xNFhpRE=a-McPxyPdv=R+JUg3A@mail.gmail.com>
To: Torsten Lodderstedt <torsten@lodderstedt.net>
Cc: oauth <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000005ff52b0571340e69"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/p5vi4Jx6kqJC78QE_Bs0EZ4Q2uU>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-reciprocal-00.txt
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, 17 Jul 2018 16:01:21 -0000

Thanks for the review Torsten. All good points to be clarified in the doc.
Responses inserted ...

On Tue, Jul 17, 2018 at 11:22 AM, Torsten Lodderstedt <
torsten@lodderstedt.net> wrote:

> Hi Dick,
>
> I gave you draft a read and came up with the following questions:
>
> Section 2: How does Party A know it is supposed to conduct a reciprocal
> OAuth flow if Party B does not indicate so in the authorization response?
>

Out of band configuration. Will clarify in next version.


>
> Section 3
>
> Party A is supposed to call the token endpoint of Party B using an
> authorization code generated by Party A. How does Party B interpret this
> code? Or does it just send this code back to Party A to obtain its access
> token for A?
>

Yes, per last sentence in Section 3. What language would clarify that?


>
> Party B uses the access token issued to Party A in the first part of the
> flow (ordinary OAuth code flow) to identify the respective user account
> with Party B. Since the AS consumes its access token as an RS, does Party A
> need to include a certain scope in the code flow request in order to enable
> this part of the flow?
>

Party A is using its own access token for context. Party B is not accessing
the user context / account.


>
> How is the AS of Party B supposed to determine the token endpoint of Party
> A’s AS?
>

Same as Party A learns Party B's token endpoint.

In practice, the flow could be started by either party. Both can initiate
and complete. I'll clarify in the next version.


>
> I think a figure of the overall process would help to understand the
> concept.
>

It is pretty much the same as OAuth with one extra flow. I can add if that
would help.


>
> kind regards,
> Torsten.
>
> > Am 24.05.2018 um 22:28 schrieb internet-drafts@ietf.org:
> >
> >
> > A New Internet-Draft is available from the on-line Internet-Drafts
> directories.
> > This draft is a work item of the Web Authorization Protocol WG of the
> IETF.
> >
> >        Title           : Reciprocal OAuth
> >        Author          : Dick Hardt
> >       Filename        : draft-ietf-oauth-reciprocal-00.txt
> >       Pages           : 4
> >       Date            : 2018-05-24
> >
> > Abstract:
> >   There are times when a user has a pair of protected resources that
> >   would like to request access to each other.  While OAuth flows
> >   typically enable the user to grant a client access to a protected
> >   resource, granting the inverse access requires an additional flow.
> >   Reciprocal OAuth enables a more seamless experience for the user to
> >   grant access to a pair of protected resources.
> >
> >
> > The IETF datatracker status page for this draft is:
> > https://datatracker.ietf.org/doc/draft-ietf-oauth-reciprocal/
> >
> > There are also htmlized versions available at:
> > https://tools.ietf.org/html/draft-ietf-oauth-reciprocal-00
> > https://datatracker.ietf.org/doc/html/draft-ietf-oauth-reciprocal-00
> >
> >
> > Please note that it may take a couple of minutes from the time of
> submission
> > until the htmlized version and diff are available at tools.ietf.org.
> >
> > Internet-Drafts are also available by anonymous FTP at:
> > ftp://ftp.ietf.org/internet-drafts/
> >
> > _______________________________________________
> > OAuth mailing list
> > OAuth@ietf.org
> > https://www.ietf.org/mailman/listinfo/oauth
>
>