View Source mix wac.install (WebauthnComponents v0.8.0)

Generates schemas, migrations, and contexts for users with WebauthnComponents as the primary authentication mechanism.

Options

By default, contexts, schemas, tests, and web modules are generated or modified by wac.install. You may opt out of one or more generators with the following options:

  • --no-contexts: Do not generate context modules.
  • --no-schemas: Do not generate schema & migration modules.
  • --no-tests: Do not generate test modules & scripts.
  • --no-web: Do not generate the authentication LiveView, the session controller, or session hooks.
  • --no-router: Do not modify the router.

Templates

Within the webauthn_components repo, the following templates are used by wac.install to scaffold the modules needed to support Passkeys in a LiveView application:

  • templates/components/navigation
  • templates/components/navigation_components.ex
  • templates/components/passkey_components.ex
  • templates/components/passkeys
  • templates/contexts/identity.ex
  • templates/controllers/page_controller.ex
  • templates/controllers/session.ex
  • templates/fixtures/identity_fixtures.ex
  • templates/live_views/authentication_live.ex
  • templates/live_views/authentication_live.html.heex
  • templates/live_views/registration_live.ex
  • templates/live_views/registration_live.html.heex
  • templates/migrations/user_keys.exs
  • templates/migrations/user_tokens.exs
  • templates/migrations/users.exs
  • templates/misc/user_token_cleaner.ex
  • templates/schemas/user.ex
  • templates/schemas/user_key.ex
  • templates/schemas/user_token.ex
  • templates/session_hooks/assign_user.ex
  • templates/session_hooks/require_user.ex
  • templates/tests/authentication_live_test.exs
  • templates/tests/identity_test.exs
  • templates/tests/registration_live_test.exs