Re: [OAUTH-WG] Last Call: <draft-ietf-oauth-device-flow-09.txt> (OAuth 2.0 Device Flow for Browserless and Input Constrained Devices) to Proposed Standard

Andrew Sciberras <andrewsciberras@pingidentity.com> Wed, 30 May 2018 21:36 UTC

Return-Path: <andrewsciberras@pingidentity.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 D004212EB19 for <oauth@ietfa.amsl.com>; Wed, 30 May 2018 14:36:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, 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 (1024-bit key) header.d=pingidentity.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 xu-OXBZw-Etf for <oauth@ietfa.amsl.com>; Wed, 30 May 2018 14:36:02 -0700 (PDT)
Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::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 1532612EB08 for <oauth@ietf.org>; Wed, 30 May 2018 14:36:02 -0700 (PDT)
Received: by mail-wm0-x241.google.com with SMTP id 18-v6so44755857wml.2 for <oauth@ietf.org>; Wed, 30 May 2018 14:36:01 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pingidentity.com; s=gmail; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=e/odCEwSx8NejxfFWIa2zZ6w9SiHuUtv0Wy0tWjL79k=; b=PAJGhuInbHiWyr3Wm3ZMptCCXZzex+v5TLp/vpyV56wNlrCf7c/NKG+ovcr1M5Y5ra N3MWY40gDmajsbcxUhMx7Iq1YhXcPy6abnjlooNoIpV6FoIE4mn+uAMtHO/oqAXB0Ggd ucHuxPPfcqdT7/ittTICdbccv4RLpb/E8nP5E=
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=e/odCEwSx8NejxfFWIa2zZ6w9SiHuUtv0Wy0tWjL79k=; b=FIkaeXyPI8o9oIK73b8exL+1CyUqGjOMTj63LeNY9sh7l4fKGpTfqwl2BSq/ld2edb 3Xg0565N46Y+ZbyL48yqLORGQexmkALpI7SjBMO4voRN2BRZ2IBQogrJgdLlwJ0RwCZg 9lQRrRDdlWReN7f9Hjrzlp14HVRbUEJ9DvaNWykXEMOey9HH8wWLnVroD3+mhQAYDNNn DGN3YVbwkvRIgrAOC0TPPLYJm6OtmY5XEHjJlKVdIJRWBLjQ7TM3FpSRZYI2hyqhGpSp NoUl43zqRNj65qroX4Dqf/SINd/IkVR8SjwsUKWOff0OlXBsmSiC64LtgwrWbqrm8PjK dbLg==
X-Gm-Message-State: ALKqPwf+XuAYvJbSY1XaXrzEuOQ+OvLjhADo6yWKd+glkUfRNrieCChD YhtsGRFyBoaP8G5rpJ/BZIsgmH6au9GGLgTBcRuzvTLrth3jWK5Tl9rW/EgLXhiX/VALUoFx8Vn g8X6z0bJ9LK7rBw==
X-Google-Smtp-Source: ADUXVKKrftYaH3iiPjCJJAt2XWv2vJyLybU+wnWCROSZ0H6QNrEitZ845WuKjcKtg2NA72yr8HsKXI5cZdDEDMmEQss=
X-Received: by 2002:a1c:2cc2:: with SMTP id s185-v6mr2390459wms.62.1527716160493; Wed, 30 May 2018 14:36:00 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a1c:e308:0:0:0:0:0 with HTTP; Wed, 30 May 2018 14:35:39 -0700 (PDT)
In-Reply-To: <152763243091.27698.7723369435827878398.idtracker@ietfa.amsl.com>
References: <152763243091.27698.7723369435827878398.idtracker@ietfa.amsl.com>
From: Andrew Sciberras <andrewsciberras@pingidentity.com>
Date: Thu, 31 May 2018 07:35:39 +1000
Message-ID: <CAEqOSkfwdn-+1zFBgpgk3Mr6HYy-OvKNdVRKZtdP9c6HVHC60Q@mail.gmail.com>
To: ietf@ietf.org
Cc: IETF-Announce <ietf-announce@ietf.org>, oauth@ietf.org, oauth-chairs@ietf.org, draft-ietf-oauth-device-flow@ietf.org
Content-Type: multipart/alternative; boundary="000000000000107eee056d73238d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/IfrNrc5aGSXIruq42UNOU_mV8nU>
Subject: Re: [OAUTH-WG] Last Call: <draft-ietf-oauth-device-flow-09.txt> (OAuth 2.0 Device Flow for Browserless and Input Constrained Devices) to Proposed Standard
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 30 May 2018 21:36:05 -0000

Hello


Do we feel that the document should be more specific in addressing how the
authorization service should respond to a device access token request when
the user has refused to grant access to the device?


The document currently indicates in section 3.5 that a success response
defined in section 5.1 of RFC6749, an error as defined in section 5.2 of
RFC6749 (this includes invalid_request, invalid_client, invalid_grant,
unauthorized_client, unsupported_grant_type, and invalid_scope), or a new
device flow error code (authorization_pending, slow_down, and
expired_token) may be returned in a response to a device token request.


It doesn’t seem that any of these options are appropriate to convey that a
user has refused to grant access to the device.


The Google implementation appears to be using the access_denied error code
from section 4.1.2.1 of RFC6749. While this would seem to be the most
suitable error code, the document does not explicitly indicate it as a
permitted response.


I believe that clarifying the response error code in the condition where a
user has refused access to the client would be beneficial, remove
ambiguity, and promote greater consistency across implementations.


Regards

Andrew Sciberras


On Wed, May 30, 2018 at 8:20 AM, The IESG <iesg-secretary@ietf.org> wrote:

>
> The IESG has received a request from the Web Authorization Protocol WG
> (oauth) to consider the following document: - 'OAuth 2.0 Device Flow for
> Browserless and Input Constrained Devices'
>   <draft-ietf-oauth-device-flow-09.txt> as Proposed Standard
>
> The IESG plans to make a decision in the next few weeks, and solicits final
> comments on this action. Please send substantive comments to the
> ietf@ietf.org mailing lists by 2018-06-12. Exceptionally, comments may be
> sent to iesg@ietf.org instead. In either case, please retain the
> beginning of
> the Subject line to allow automated sorting.
>
> Abstract
>
>
>    This OAuth 2.0 authorization flow for browserless and input
>    constrained devices, often referred to as the device flow, enables
>    OAuth clients to request user authorization from devices that have an
>    Internet connection, but don't have an easy input method (such as a
>    smart TV, media console, picture frame, or printer), or lack a
>    suitable browser for a more traditional OAuth flow.  This
>    authorization flow instructs the user to perform the authorization
>    request on a secondary device, such as a smartphone.  There is no
>    requirement for communication between the constrained device and the
>    user's secondary device.
>
>
>
>
> The file can be obtained via
> https://datatracker.ietf.org/doc/draft-ietf-oauth-device-flow/
>
> IESG discussion can be tracked via
> https://datatracker.ietf.org/doc/draft-ietf-oauth-device-flow/ballot/
>
>
> No IPR declarations have been submitted directly on this I-D.
>
>
> The document contains these normative downward references.
> See RFC 3967 for additional information:
>     rfc6819: OAuth 2.0 Threat Model and Security Considerations
> (Informational - IETF stream)
>     draft-recordon-oauth-v2-device: OAuth 2.0 Device Profile
>  (None - )
>     rfc6755: An IETF URN Sub-Namespace for OAuth (Informational - IETF
> stream)
>
>
>
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth
>

-- 
_CONFIDENTIALITY NOTICE: This email may contain confidential and privileged 
material for the sole use of the intended recipient(s). Any review, use, 
distribution or disclosure by others is strictly prohibited.  If you have 
received this communication in error, please notify the sender immediately 
by e-mail and delete the message and any file attachments from your 
computer. Thank you._