Re: [OAUTH-WG] not using oauth for this architecture in oauth for browser based apps.

Leo Tohill <leotohill@gmail.com> Tue, 23 July 2019 04:14 UTC

Return-Path: <leotohill@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 6D0A912006B for <oauth@ietfa.amsl.com>; Mon, 22 Jul 2019 21:14:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.997
X-Spam-Level:
X-Spam-Status: No, score=-1.997 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_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 pr3_kqh701GU for <oauth@ietfa.amsl.com>; Mon, 22 Jul 2019 21:14:47 -0700 (PDT)
Received: from mail-pf1-x42f.google.com (mail-pf1-x42f.google.com [IPv6:2607:f8b0:4864:20::42f]) (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 64D91120018 for <oauth@ietf.org>; Mon, 22 Jul 2019 21:14:47 -0700 (PDT)
Received: by mail-pf1-x42f.google.com with SMTP id c73so18413961pfb.13 for <oauth@ietf.org>; Mon, 22 Jul 2019 21:14:47 -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=8aXGdgqbmGuBTyVLdR8gtJ3cr+8Qs+CquUil3BByvuw=; b=jgsz6wHqTN914molscY97BxhZEvkg5z8fqYIOBZ+nXh0gMnlPBXLJ5Ev+U89IBhLbM A2CUxKJeBobIkC14Ma0MWO3tIOT4cF4M6kSWj/ZdhTomgGVRR9b0mYGTfnj5ztgcTvNk FUxW0OwuauA5xuWuFwSy36qeb7otuD0gduuatMxzfUvtyZo5sVK+RavGD63eE37SC+f8 pMS08OWbXPIHY1qETBC49BaWpcNVTaO3X80oiU2Dgh5xQOAIyE7QfIdUY5xChC1exzov N9SpYORAVtH30Eiyt91INiCfZS/IJWApcqFHMyj3w5iDd3t0OWLXEuBoz3N0DdueV+4h zKwQ==
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=8aXGdgqbmGuBTyVLdR8gtJ3cr+8Qs+CquUil3BByvuw=; b=lGv1nE1wq3E4Lzt4m4Tko96Q6pbgf9t5UV2GvbYXP3sWc/XUzljDBSwAIPZGre9Sf8 mAC8ajvn9TwdE3TWxsIwhf+OuzcaHFIQQzRWeukVbTnvvaS2JL67QWj0IzBsNVYpYDnB gFKpoCLzy7tjBgwg7Wq2w0tY6+4Xky5YSdLZRzbwPFguVI/+v4M6meHEZ5H9FTXTgQe/ tv+ixWR89PIs0Rtg1No9Dlqt2S1+/upZk2EAgr9NsiIFvUDEDcM/Q/Ix5q6g9sSOHlrW L5fsN1UxZ+sbsJzWpIzeWf0DG2fQVQsg5owA5zSe8a37dAxdUwSzsvIFLzSkLqC5QHGZ Ixhw==
X-Gm-Message-State: APjAAAW08PrKeTN7u9dChi6E2j9u65Zin5TGano84xetEWhuyXEGVM86 I5Vbo74iguy3OW0M1AR8aIVDgZDxWFcqpgjFHjs=
X-Google-Smtp-Source: APXvYqwSEzNVRSZkvgGKJKImXF04vO4EhD2sGTS+AYrJeruCQPbH5bVqr++glYcOaWpzBVG0kBgZaX83yMN3LJ6rGcQ=
X-Received: by 2002:a63:1d4:: with SMTP id 203mr57243521pgb.441.1563855286660; Mon, 22 Jul 2019 21:14:46 -0700 (PDT)
MIME-Version: 1.0
References: <CABw+Fcuv2banmDtqC_6A4j6Vw7OgTLEDFOf0mn4YSeMaNkUsrA@mail.gmail.com> <67ed81f2-77dc-4acc-a499-2772c5fa4a85@getmailbird.com> <CA+iA6ujVp7C5QvzNHmRE3kV_VTgUQXWhTvJu5WaGt3nDKB8rzQ@mail.gmail.com>
In-Reply-To: <CA+iA6ujVp7C5QvzNHmRE3kV_VTgUQXWhTvJu5WaGt3nDKB8rzQ@mail.gmail.com>
From: Leo Tohill <leotohill@gmail.com>
Date: Tue, 23 Jul 2019 00:14:35 -0400
Message-ID: <CABw+FcuT+-+B57ZfyMmGXLjVYqDaq2p0_3juHd8H82MN24wpGw@mail.gmail.com>
To: Hans Zandbelt <hans.zandbelt@zmartzone.eu>
Cc: Brock Allen <brockallen@gmail.com>, OAuth WG <oauth@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d7730d058e516e3c"
Archived-At: <https://mailarchive.ietf.org/arch/msg/oauth/56_8QPOV6GmagG6R6Ebq-Wri8U4>
Subject: Re: [OAUTH-WG] not using oauth for this architecture in oauth for browser based apps.
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.29
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, 23 Jul 2019 04:14:49 -0000

I didn't see the earlier discussion (do you have a date or title?) so
apologies if I'm bringing up something that's been resolved.  But I still
think that it's really confusing to say "it
may be a better decision to avoid using OAuth entirely"  if the application
will still be using Oauth/OIDC (which will, of course, involve a browser
flow).

orsten@lodderstedt.net <torsten@lodderstedt.net>  has raised the same (or
similar?) objection in a parallel thread.  I suggest we continue the
conversation there.

- Leo


On Mon, Jul 22, 2019 at 1:09 PM Hans Zandbelt <hans.zandbelt@zmartzone.eu>
wrote:

> +1, as discussed before
>
> Hans.
>
> On Mon, Jul 22, 2019, 18:25 Brock Allen <brockallen@gmail.com> wrote:
>
>> I think the implication is that the server-side would use something like
>> OIDC to the token server in order to establish the identity of the user.
>> The difference is that this would be driven from the server-side piece of
>> the application, as any other normal server-side client would. The result
>> would then simply be a cookie-based authentication session in the client,
>> and any JS code would leverage the http only, same-site cookie for Ajax
>> calls.
>>
>> -Brock
>>
>> On 7/21/2019 10:22:38 PM, Leo Tohill <leotohill@gmail.com> wrote:
>> The advice for the architectural pattern "JavaScript served from a common
>> domain as the resource server"  reads:
>>
>> "For simple system architectures, such as when the JavaScript application
>> is served
>> from a domain that can share cookies with the domain of the API (resource
>> server), it
>> may be a better decision to avoid using OAuth entirely, and instead use
>> session
>> authentication to communicate directly with the API."
>>
>> I can agree that session authentication could be best here, but how was
>> the user authenticated in order to create the trusted session?  Wouldn't
>> that/shouldn't that still use an oauth flow to collect credentials?
>>
>> We need to be clear on the distinction between browser based apps that
>> hold the token(s) in the browser space, vs. those that don't.  I agree that
>> with this
>> "common domain" architecture, the tokens should not be held in the
>> browser, but it doesn't follow that oauth should not be used at all.
>>
>> Leo
>>
>>
>> _______________________________________________ OAuth mailing list
>> OAuth@ietf.org https://www.ietf.org/mailman/listinfo/oauth
>>
>> _______________________________________________
>> OAuth mailing list
>> OAuth@ietf.org
>> https://www.ietf.org/mailman/listinfo/oauth
>>
>