Example to illustrate the use of the Web Authentication API#629
Example to illustrate the use of the Web Authentication API#629
Conversation
| "permissions": [ | ||
| "storage" | ||
| ], |
There was a problem hiding this comment.
@Rob--W is there any need for this? I can't see that we are using any APIs or features that need it. However, as I can't fully test the extension, I've not been able to confirm it's not needed for some reason.
There was a problem hiding this comment.
Not needed for this example, as the browser.storage API is not used anywhere.
| "permissions": [ | ||
| "storage" | ||
| ], |
There was a problem hiding this comment.
Not needed for this example, as the browser.storage API is not used anywhere.
|
|
||
| "browser_specific_settings": { | ||
| "gecko": { | ||
| "id": "beastify@mozilla.org", |
| const authButton = document.getElementById('authButton'); | ||
| const optionsText = document.getElementById('optionsText'); | ||
|
|
||
| // Helper function to convert a Base64 string to an ArrayBuffer |
There was a problem hiding this comment.
Please update the code example according to my review at mdn/content#43653 (review)
There was a problem hiding this comment.
@Rob--W done. Also, note I added optional chaining to the options.allowCredentials processing.
LeoMcA
left a comment
There was a problem hiding this comment.
Change to examples.json looks fine
Description
This is the example extension suggested in Bug 1956484 "Allow web extensions to assert WebAuthn relying party identifiers of a web domain they have host permissions for" to support the documentation about the Web Authentication API provided in mdn/content#43653.
To do
Add cross reference to the MDN documentation