Skip to content

Commit

Permalink
WIP: Document Webauthn
Browse files Browse the repository at this point in the history
  • Loading branch information
raddevon committed Mar 21, 2024
1 parent 5008352 commit 5794c07
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
Binary file modified docs/guides/auth/images/ui-auth.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
23 changes: 23 additions & 0 deletions docs/guides/auth/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,29 @@ For local testing, you can use the same method used for SMTP previously for
<ref_guide_auth_overview_email_password>`.


WebAuthn
--------

- ``relying_party_origin``: This is the URL of the origin of the web
application handling the WebAuthn request. If you're using the built-in UI,
this is the origin of the EdgeDB web server.

- ``require_verification``: (Default: ``true``) If ``true``, your application
will not be able to retrieve an authentication token until the user has
verified their email. If ``false``, your application can retrieve an
authentication token, but a verification email will still be sent.
Regardless of this setting, you can always decide to limit access or
specific features in your application by testing if
``ext::auth::WebAuthnFactor.verified_at`` is set to a date in the past on
the ``ext::auth::LocalIdentity``.

.. note::

If you enable ``require_verification``, you will need to configure SMTP.
For local testing, you can use Mailpit as described in :ref:`the
email/password section <ref_guide_auth_overview_email_password>`.


Integrating your application
============================

Expand Down

0 comments on commit 5794c07

Please sign in to comment.