<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>220559</bug_id>
          
          <creation_ts>2021-01-12 13:00:19 -0800</creation_ts>
          <short_desc>WebAuthn / navigator.credentials.create() does not work in WKWebView-based browsers like Chrome, Firefox</short_desc>
          <delta_ts>2021-01-14 00:21:38 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Misc.</component>
          <version>Safari 14</version>
          <rep_platform>iPhone / iPad</rep_platform>
          <op_sys>iOS 14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>219823</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Urs Wolfer">uwolfer</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ajuma</cc>
    
    <cc>jiewen_tan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1719097</commentid>
    <comment_count>0</comment_count>
    <who name="Urs Wolfer">uwolfer</who>
    <bug_when>2021-01-12 13:00:19 -0800</bug_when>
    <thetext>While navigator.credentials.create() works in Safari, it does not work in WKWebView-based apps.

Can be reproduced with this demo: https://webauthn.io/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719451</commentid>
    <comment_count>1</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-01-13 15:14:50 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 219823 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719536</commentid>
    <comment_count>2</comment_count>
    <who name="Urs Wolfer">uwolfer</who>
    <bug_when>2021-01-13 23:20:27 -0800</bug_when>
    <thetext>(In reply to Jiewen Tan from comment #1)
&gt; 
&gt; *** This bug has been marked as a duplicate of bug 219823 ***

@Jiewen: Thank you for triaging this ticket. Are you sure this is a complete duplicate? From reading the patch in bug 219823 it looks to me as the change only affects the *default* browser. My request was to support it in any WKWebView based browsers or apps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719547</commentid>
    <comment_count>3</comment_count>
    <who name="Jiewen Tan">jiewen_tan</who>
    <bug_when>2021-01-14 00:05:25 -0800</bug_when>
    <thetext>(In reply to Urs Wolfer from comment #2)
&gt; (In reply to Jiewen Tan from comment #1)
&gt; &gt; 
&gt; &gt; *** This bug has been marked as a duplicate of bug 219823 ***
&gt; 
&gt; @Jiewen: Thank you for triaging this ticket. Are you sure this is a complete
&gt; duplicate? From reading the patch in bug 219823 it looks to me as the change
&gt; only affects the *default* browser. My request was to support it in any
&gt; WKWebView based browsers or apps.

We currently aren&apos;t considering opening this API for all WKWebViews. If you are going to use a web view to do WebAuthn, I would suggest you to use either ASWebAuthenticationSession or SFSafariViewController.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1719552</commentid>
    <comment_count>4</comment_count>
    <who name="Urs Wolfer">uwolfer</who>
    <bug_when>2021-01-14 00:21:38 -0800</bug_when>
    <thetext>(In reply to Jiewen Tan from comment #3)
&gt; We currently aren&apos;t considering opening this API for all WKWebViews. If you
&gt; are going to use a web view to do WebAuthn, I would suggest you to use
&gt; either ASWebAuthenticationSession or SFSafariViewController.


Are you not considering opening this API because of security concerns? If yes, would it be an idea to only enable the API for &quot;app bound domains&quot; (AFAIK you already enable other security relevant APIs when &quot;app bound domains&quot; is configured).

Using either ASWebAuthenticationSession or SFSafariViewController is probably possible, but from a UX point of view not the nicest solution in all cases.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>