Return-Path: <ve7jtb@ve7jtb.com>
X-Original-To: oauth@ietfa.amsl.com
Delivered-To: oauth@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
 by ietfa.amsl.com (Postfix) with ESMTP id AC0141A92B3
 for <oauth@ietfa.amsl.com>; Sat, 21 Nov 2015 06:00:43 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level: 
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5
 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
 SPF_PASS=-0.001] autolearn=ham
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 AsN43Gihbn7k for <oauth@ietfa.amsl.com>;
 Sat, 21 Nov 2015 06:00:42 -0800 (PST)
Received: from mail-qg0-x232.google.com (mail-qg0-x232.google.com
 [IPv6:2607:f8b0:400d:c04::232])
 (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 DA0521A92AE
 for <oauth@ietf.org>; Sat, 21 Nov 2015 06:00:41 -0800 (PST)
Received: by qgec40 with SMTP id c40so90258492qge.2
 for <oauth@ietf.org>; Sat, 21 Nov 2015 06:00:40 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=ve7jtb-com.20150623.gappssmtp.com; s=20150623;
 h=content-type:mime-version:subject:from:in-reply-to:date:cc
 :content-transfer-encoding:message-id:references:to;
 bh=819BWgXlWvr8uYICSWZK6zf/C/nd+IU9qJCf152OeAA=;
 b=HZiy4ewh68nz+psxlC0/e6bvhlA9kE9e3r7vNn8fbiKnq4eDhHMn3UUjWJbrtQ+Q18
 NiMcG2Svs9YqlCOZmwrDSCwMEMrBttP3hFFTJ1LeXxZJI9I/5uw5CtZYpXMRDQcZ/Db7
 tzE8bVCa486b8j5Q8GOQUvz6ysve2RGR7kxsd1PGqHn3BgONj9U0iajWnVh2Zl3IrdIY
 1kGzyh0YNxv568Y+VemVfkd8nP0Uf7Bh8gSdoFZiEBV/Ve5QVXsku0Tlyc5Iz8kpvgLf
 KxRSyGlXHVKhraaNGy8Gt7IuBDMusWkW/qAVIWuo7sB2z5CXd9zFd5tjc6zLigmbtzpi
 ZtVg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20130820;
 h=x-gm-message-state:content-type:mime-version:subject:from
 :in-reply-to:date:cc:content-transfer-encoding:message-id:references
 :to; bh=819BWgXlWvr8uYICSWZK6zf/C/nd+IU9qJCf152OeAA=;
 b=iMzRtMWOP78c7pkRcrGX+vh54eCJwVsU2M0J/dMC792a5gH2IOcOHkN5fQcH2jNygM
 wIJN+TX78CMSesQqLersZsPjztu/PsQ2fDKXrmY7jdElUj+pB8bp/Fz7lpViQA9M0Vqk
 zESkMna7yFxDQ+qnKF+eTtEU2wD1xN8PFYqeXE0IHoV9rIr5QRNBoxxVS/MhQw2mNvpD
 e+hvci8nOvX6lQSWohBaodV7zcDNS+Dge7r99K28zguUhkvHXa2xYPP+tlg8cfH7Apty
 XS6k2e9Xt66T4cr58aL9U3BAHqBf60sV4/oRDCvWJnPXp66rxJDD4qCAw+2kSWebHIuo
 7O+w==
X-Gm-Message-State: ALoCoQnFs8+fGOTXcsXhvUV4Zlj9vBRV6J1VvCzolEehwXDWsKFgAR5bHHzJmu/QimaknvxZzOne
X-Received: by 10.140.84.202 with SMTP id l68mr18211646qgd.21.1448114440628;
 Sat, 21 Nov 2015 06:00:40 -0800 (PST)
Received: from [192.168.1.216] ([191.115.11.160])
 by smtp.gmail.com with ESMTPSA id x82sm714936qhx.40.2015.11.21.06.00.38
 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Sat, 21 Nov 2015 06:00:39 -0800 (PST)
Content-Type: text/plain; charset=utf-8
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: John Bradley <ve7jtb@ve7jtb.com>
In-Reply-To: <FB1A52A9-AE47-4123-BFD1-36B58D61FB4A@matake.jp>
Date: Sat, 21 Nov 2015 11:00:33 -0300
Content-Transfer-Encoding: quoted-printable
Message-Id: <EEE00718-28EC-4720-839C-E8AD10558778@ve7jtb.com>
References: <FB1A52A9-AE47-4123-BFD1-36B58D61FB4A@matake.jp>
To: nov matake <nov@matake.jp>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/oauth/kJ4tT11ZsMpgD2tRBbWiGS-PA8g>
Cc: oauth@ietf.org
Subject: Re: [OAUTH-WG] allowing offline access for native app & its backend
 server
X-BeenThere: oauth@ietf.org
X-Mailman-Version: 2.1.15
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: Sat, 21 Nov 2015 14:00:43 -0000

There is a missing step in this flow that also needs to be considered, =
and that is how the app authenticates to the backend server.

In the Google case they are providing a JWT/id_token to the client from =
the token endpoint for the client to use for it=E2=80=99s authentication =
to it=E2=80=99s backend.

It would not be a huge step to have the backend then use token exchange =
along with it=E2=80=99s credentials to exchange that for a refresh =
token.

I can see giving out two codes and we have discussed that in the past. =20=


This topic should perhaps be added to the list of things for =
rechartering.   There are a lot of interactions and posable security =
side effects that need to be looked at.

John B.


> On Nov 21, 2015, at 9:55 AM, nov matake <nov@matake.jp> wrote:
>=20
> Hi OAuthers,
>=20
> I=E2=80=99m thinking the way to issue refresh tokens both to native =
app and its backend server at same time.
> I have 2 ideas currently.
>=20
> 1. including 2 audience in a single authorization code, and allow =
using the code once per the audience.
> 2. issuing 2 code one for native app, one for backend server.
>=20
> 1st way means code can be used twice, so it can break RFC6749.
> 2nd way means defining another code (ex. code_for_backend etc.)
>=20
> Does someone has implementation supporting such use-case?
>=20
> =E2=80=94
> nov
> _______________________________________________
> OAuth mailing list
> OAuth@ietf.org
> https://www.ietf.org/mailman/listinfo/oauth

