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

John Bradley <> Tue, 07 March 2017 20:08 UTC

Return-Path: <>
Received: from localhost (localhost []) by (Postfix) with ESMTP id EF84C129426 for <>; Tue, 7 Mar 2017 12:08:15 -0800 (PST)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: -1.477
X-Spam-Status: No, score=-1.477 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URI_HEX=1.122] autolearn=no autolearn_force=no
Authentication-Results: (amavisd-new); dkim=pass (2048-bit key)
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id ZZmACCOnYTXg for <>; Tue, 7 Mar 2017 12:08:13 -0800 (PST)
Received: from ( [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by (Postfix) with ESMTPS id BE9FA129573 for <>; Tue, 7 Mar 2017 12:08:12 -0800 (PST)
Received: by with SMTP id 1so22909087qkl.3 for <>; Tue, 07 Mar 2017 12:08:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20150623; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=tWwRlR7/9SbG2FT0HsYagDjizDWQVYlAmPf5oQqSHAc=; b=qBOPGFg4YI8IdIxklerUBps7hbs0SutQ1kAXb30kImn6FD+xwbcxGXCO5IyBaFsqSU QuTSm6Gc8qrAOjPLJoxu9cZfKcdYrOBuDOH4B9b8lq96dIjxLp050nhLN3cjunU8i82J K+Xm1OtprHlhG2i6I3y3OUuxzVc7Ld1Xkbv7j0mlFmKKqnT0F5xzjhbMF7xEY358qfDL BnIyDkiCnIinLYpI7CKIyPx9mOs6LZrYuPgsHlhzYUWcBQkrSp5G8AZgRaes7Yrq8oyF 3CnTTDLNuF4Ot0NRyUKoEh1EQ0597gqNYl19xnDGinpcGb1u9+vk5wXxWB0d481IVTUs fbXQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=tWwRlR7/9SbG2FT0HsYagDjizDWQVYlAmPf5oQqSHAc=; b=kjCng2ETSEhSuv/2qheeebnW6jkGe+VA05RZ4kdJ2UEfodjW4Oza/6pZUF6js5tK0o axPs1sk8OejhaSZV8z2u0h+E0p8kZakmu8slVFSkg+AxbkNh0ILnfQPO0YCOeHiMuFoC jELKVe71ozoYxNipDgpe+ruqqJWwXvF7gb/djcA8Mye3f1vkAe1dbvypa+kS5mawpoK3 OV2+Y9iDivIPfHWSO+Y8aIry94ng7tafrtFyXeLOrhANHF/yKw51OMLLJpq7FRoP2XEN 9e2peUnfRwXPP03RSprEKjonKeWLGyE0qUbynerZhGtL5qC78eSjzd82tuQkZuG6hMUc Zqvg==
X-Gm-Message-State: AMke39nesqO3mG6Db73pUxitp43CQxGpz42gdpb1f7dVRdLhQS0HMPVPMT3WkWARpIWKp5q1
X-Received: by with SMTP id u185mr2694227qkc.56.1488917291447; Tue, 07 Mar 2017 12:08:11 -0800 (PST)
Received: from [] ([]) by with ESMTPSA id m78sm670990qki.44.2017. (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Mar 2017 12:08:10 -0800 (PST)
From: John Bradley <>
Message-Id: <>
Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\))
Date: Tue, 07 Mar 2017 17:08:06 -0300
In-Reply-To: <>
To: Anthony Nadalin <>
References: <> <> <> <> <>
X-Mailer: Apple Mail (2.3259)
Content-Type: multipart/signed; protocol="application/pkcs7-signature"; micalg="sha-256"; boundary="94eb2c05a19647abb7054a2992bd"
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 20:08:16 -0000

That is theory that CTAP should let web-views work.  

I just ran a test on the current shipping Android build. U2F is only working from the View controller and system browser.  
Web-view is not currently exposing CTAP.

I believe that is also the case on iOS, but haven't built a app to test it.

This first version of the BCP doesn’t go into advanced issues around Web Auth/Fido in detail.  We know that currently WebView/View controller/Token Agent work with existing CTAP implementations. 

Once we have systems deployed that can use CTAP from a web view we can update the BCP.

We may also have a definitional problem, we consider the Windows token broker in SSO mode to fit the model of a view controller/Web View in that it is sandboxed from the app , rather than considering it a web-view.   I know that the token broker can support WebAuthentication (CTAP 2) in recent RS2 builds of Win 10.  

John B.

> On Mar 7, 2017, at 5:16 AM, Anthony Nadalin <> wrote:
> 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 < <>>
> Cc: <>; <>
> 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:
>>> <>
>>> < <>
>>> <>%2Fdoc%2Fdraft-ietf-oauth-native-apps%2F&data=02%7C0
>>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C72f9
>>> 88bf86f141af91ab2d7cd011db47%7C1%7C0%7C636244281810078497&sdata=YQ0dc
>>> SViranVx4sjH7aeFrEYvTgbQM3OruoK%2FR7EZak%3D&reserved=0>
>>>   There's also a htmlized version available at:
>>> <>
>>> < <>
>>> <>%2Fhtml%2Fdraft-ietf-oauth-native-apps-08&data=02%7C01%7Ct
>>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C72f988bf8
>>> 6f141af91ab2d7cd011db47%7C1%7C0%7C636244281810088501&sdata=pFJdiZd2ni
>>> SxiuXtThG8OE32rjHxoJ8U0jsoCmiaqKc%3D&reserved=0>
>>>   A diff from the previous version is available at:
>>> <>
>>> < <>
>>> <>%2Frfcdiff%3Furl2%3Ddraft-ietf-oauth-native-apps-08&data=02%
>>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C7
>>> 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
>>> <> < <>>
>>> <>
>>> < <>
>>> <>%2Fmailman%2Flistinfo%2Foauth&data=02%7C01%7Ctonynad%40micro
>>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C72f988bf86f141af91ab2d7
>>> cd011db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7c
>>> RYUSlotpr6JXtFXpduGuI%3D&reserved=0>
>>> _______________________________________________
>>> OAuth mailing list
>>> <>
>>> <>.
>>> <>%2Fmailman%2Flistinfo%2Foauth&data=02%7C01%7Ctonynad%40micros
>>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C72f988bf86f141af91ab2d7c
>>> d011db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7cR
>>> YUSlotpr6JXtFXpduGuI%3D&reserved=0
>> _______________________________________________
>> OAuth mailing list
>> <>
>> <>
>> <>%2Fmailman%2Flistinfo%2Foauth&data=02%7C01%7Ctonynad%40microsof
>> <>%7Ceff092e6b2894ace8f8408d464cda4d5%7C72f988bf86f141af91ab2d7cd01
>> 1db47%7C1%7C0%7C636244281810088501&sdata=14GztZLY%2BnQNbhR5bqjS7cRYUSl
>> otpr6JXtFXpduGuI%3D&reserved=0