Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-native-apps-08.txt

Anthony Nadalin <> Tue, 07 March 2017 08:16 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id 915431293F0; Tue, 7 Mar 2017 00:16:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -2.002
X-Spam-Status: No, score=-2.002 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (1024-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id 6DqnVpIcizcF; Tue, 7 Mar 2017 00:16:44 -0800 (PST)
Received: from ( []) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by (Postfix) with ESMTPS id 6DAA8128DF6; Tue, 7 Mar 2017 00:16:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=DjyKGGijEJbD+6Wlf53qEMeXBmpmsvCll5toNLnhsuQ=; b=UkZJr9nFYVuJRbCzReqgpZ+UGVWB8Z4HiYI371WE1BP68WUwQ/yVkwp8K18svOhLkEcImIX7Y64F/S8XcRohY6uf9GW+rl5oErwInKWwXLpMocSpsgEHZgH7hXk6I/EOy0aBMRkqKfGWucXno+xoF0GGLPjY0+iVsTxdg4LLXjU=
Received: from ( by ( with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Tue, 7 Mar 2017 08:16:18 +0000
Received: from ([]) by ([]) with mapi id 15.01.0947.020; Tue, 7 Mar 2017 08:16:18 +0000
From: Anthony Nadalin <>
To: John Bradley <>, Hannes Tschofenig <>
Thread-Topic: [OAUTH-WG] I-D Action: draft-ietf-oauth-native-apps-08.txt
Thread-Index: AQHSk+dMOuSnAwqhvEuPiji5kSEkmKGCqeOAgAWRfoCAAAnFgIAAyPFg
Date: Tue, 07 Mar 2017 08:16:18 +0000
Message-ID: <>
References: <> <> <> <>
In-Reply-To: <>
Accept-Language: en-US
Content-Language: en-US
authentication-results:; dkim=none (message not signed) header.d=none;; dmarc=none action=none;
x-originating-ip: []
x-ms-office365-filtering-correlation-id: 598821fa-58d8-48d7-05a9-08d465323b32
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081); SRVR:SN1PR0301MB2030;
x-microsoft-exchange-diagnostics: 1; SN1PR0301MB2030; 7:Bn0AHG12WdDNpmcn9S39UUJjp88HVxeeP0S3akn/O86CKN41srhTBLDShj6ww1sqz8FALXu+KNaE3hyf0sT+wXjcA3hFiAKLozY51QN5g7CVeYci4vs+rXOGgeNWhaIkddsz89NprUDyGMYX6Fy42sd7gnTTCwPfkSiq5xFBIy8Klnh8DYVAUI17kXaDUefosh1l/B88mY0k4lJV1QoS19NA6SyC/JmoGVtUaY6KUDIHAcGW7c5olM1/ntPr5CkzOVi2WLbpRxSj6Mzl4jVZhZEuxc40Sn2Di56n5fqt8mcquzLeePQNlj8GSXKTmj9+rLg7FrhnpTEHByjwZ4z/JwVTTo/PmbS9BDFsNTqXYGQ=
x-microsoft-antispam-prvs: <>
x-exchange-antispam-report-test: UriScan:(192374486261705)(189930954265078)(248736688235697)(219752817060721);
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040375)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001)(6055026)(61426038)(61427038)(6041248)(20161123555025)(20161123562025)(20161123558025)(20161123564025)(20161123560025)(6072148); SRVR:SN1PR0301MB2030; BCL:0; PCL:0; RULEID:; SRVR:SN1PR0301MB2030;
x-forefront-prvs: 0239D46DB6
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(6009001)(7916002)(39410400002)(39840400002)(39850400002)(39860400002)(39450400003)(377454003)(377424004)(24454002)(13464003)(10290500002)(33656002)(5660300001)(122556002)(66066001)(3846002)(2950100002)(102836003)(6306002)(6116002)(8990500004)(106116001)(229853002)(3280700002)(7736002)(77096006)(3660700001)(74316002)(305945005)(6506006)(8936002)(7696004)(8676002)(54906002)(9686003)(93886004)(5005710100001)(4326008)(575784001)(86362001)(55016002)(99286003)(10090500001)(25786008)(50986999)(53936002)(230783001)(81166006)(54356999)(76176999)(2906002)(189998001)(2900100001)(6436002)(38730400002)(53546006)(6246003)(92566002)(42262002); DIR:OUT; SFP:1102; SCL:1; SRVR:SN1PR0301MB2030;; FPR:; SPF:None; MLV:sfv; LANG:en;
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Mar 2017 08:16:18.0424 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47
X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN1PR0301MB2030
Archived-At: <>
Cc: "" <>, "" <>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-native-apps-08.txt
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: OAUTH WG <>
List-Unsubscribe: <>, <>
List-Archive: <>
List-Post: <>
List-Help: <>
List-Subscribe: <>, <>
X-List-Received-Date: Tue, 07 Mar 2017 08:16:46 -0000

Not true John, the CTAP support that is current would support the web-view w/o any changes 

-----Original Message-----
From: OAuth [] On Behalf Of John Bradley
Sent: Monday, March 6, 2017 12:16 PM
To: Hannes Tschofenig <>
Subject: Re: [OAUTH-WG] I-D Action: draft-ietf-oauth-native-apps-08.txt

On fido I can tell you that for security reasons U2F wont work from a web-view currently.

Once we move to Web Auth (Fido 2) where the OS provides a API for apps to call to get the token it will work but the tokens are audianced to the app based on its developer key and bundle_id so that a app cant ask for a token for a different site to do correlation. 

It is true that Fido UAF currently requires a web-view to work as the authenticator is effectively compiled in to each application, and that application has access to the private keys on most platforms (Samsung knox being the only exception to that that I know of where the keys are managed by a common API to hardware key storage, but they are scoped like U2F as well)

So for the most part it is true and that unless you use the browser to get the Fido token the audience is for the app.
Example  Salesforce creates native app that may use enterprise SSO via SAML, and the enterprise may use Fido as a authentication factor.
If they use the webview + fido API approach the app can only get a token for SalesForce based on its signing key.  It could fire up the web-view and do U2F authentication with the enterprise after Salesforec has redirected the user.  However it will give every enterprise a token audience to Salesforce with a salesforce specific key.   If there is a second app for say Slack if they do the same thing the enterprise would get a slack audienced token and a slack key forcing a separate registration. 

The recommended alternative is that the app use a custom tab for the user to SalesForce and that redirect to the enterprise.
The enterprise gets the same token/key with the correct audience from all apps on the device using the browser or custom tab. 
The user may not need to signin a second time, and if they do there Fido token will not need to be re-registerd.

The Fido API approach really only works for first party apps like PayPal if the the app is not doing federation and paypal is doing the authentication for there own app.

Token binding private keys have similar issues.   The pool of private keys will probably not be shared between apps, and not between the app and the browser (Win 10 may be an exception but it is not documented yet)

In the case of using AppAuth with token binding the browser maintains the keys so the enterprise would be able to see the same key and use the same cookies across all AppAuth Apps.

You can include token binding in your app, however the token bindings and cookies are going to be sand boxed per app.  
Depending on implementation the app gets access to the cookie, but perhaps not to the private token binding key.  (At least I don't think it will in Android embedded webview).

We could expand on this later in an update to the BCP once Web Authentication and Token Binding are final.

There are still some unknowns, but in general for any sort of SSO/Federation 3rd party app I don’t see recommending anything other than a custom tab/ view controller/ external browser.

William can take the formatting question:)

John B.
> On Mar 6, 2017, at 4:41 PM, Hannes Tschofenig <> wrote:
> Hi William, Hi John,
> I just re-read version -8 of the document again.
> Two minor remarks only.
> Editorial issue: Why do you need to introduce a single sub-section 
> within Section 7.1. (namely Section 7.1.1)?
> Background question: You note that embedded user agents have the 
> disadvantage that the app that hosts the embedded user-agent can 
> access the user's full authentication credential. This is certainly 
> true for password-based authentication mechanisms but I wonder whether 
> this is also true for strong authentication techniques, such as those 
> used by FIDO combined with token binding. Have you looked into more 
> modern authentication techniques as well and their security implication?
> Ciao
> Hannes
> On 03/03/2017 07:39 AM, William Denniss wrote:
>> Changes:
>> – Addresses feedback from the second round of WGLC.
>> – Reordered security consideration sections to better group related topics.
>> – Added complete URI examples to each of the 3 redirect types.
>> – Editorial pass.
>> On Thu, Mar 2, 2017 at 10:27 PM, < 
>> <>> wrote:
>>    A New Internet-Draft is available from the on-line Internet-Drafts
>>    directories.
>>    This draft is a work item of the Web Authorization Protocol of the IETF.
>>            Title           : OAuth 2.0 for Native Apps
>>            Authors         : William Denniss
>>                              John Bradley
>>            Filename        : draft-ietf-oauth-native-apps-08.txt
>>            Pages           : 20
>>            Date            : 2017-03-02
>>    Abstract:
>>       OAuth 2.0 authorization requests from native apps should only be made
>>       through external user-agents, primarily the user's browser.  This
>>       specification details the security and usability reasons why this is
>>       the case, and how native apps and authorization servers can implement
>>       this best practice.
>>    The IETF datatracker status page for this draft is:
>> <
>> 88bf86f141af91ab2d7cd011db47%7C1%7C0%7C636244281810078497&sdata=YQ0dc
>> SViranVx4sjH7aeFrEYvTgbQM3OruoK%2FR7EZak%3D&reserved=0>
>>    There's also a htmlized version available at:
>> <
>> 6f141af91ab2d7cd011db47%7C1%7C0%7C636244281810088501&sdata=pFJdiZd2ni
>> SxiuXtThG8OE32rjHxoJ8U0jsoCmiaqKc%3D&reserved=0>
>>    A diff from the previous version is available at:
>> <
>> 2f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C636244281810088501&sdata=0J
>> OejYI%2F9vSFph4dteZ6g16NbvLRy37erpRUAw2q%2FW8%3D&reserved=0>
>>    Please note that it may take a couple of minutes from the time of
>>    submission
>>    until the htmlized version and diff are available at
>>    <>.
>>    Internet-Drafts are also available by anonymous FTP at:
>>    <>
>>    _______________________________________________
>>    OAuth mailing list
>> <>
>> <
>> cd011db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7c
>> RYUSlotpr6JXtFXpduGuI%3D&reserved=0>
>> _______________________________________________
>> OAuth mailing list
>> d011db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7cR
>> YUSlotpr6JXtFXpduGuI%3D&reserved=0
> _______________________________________________
> OAuth mailing list
> 1db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7cRYUSl
> otpr6JXtFXpduGuI%3D&reserved=0