trailbase/crates/auth-ui
2026-04-14 16:17:17 +02:00
..
src Various fixes and improvements. 2026-03-16 11:06:48 +01:00
ui Make auth-ui's profile login more resilient to invalid cookies. 2026-04-14 16:17:17 +02:00
.gitignore Add an experimental Auth UI WASM component. 2025-09-17 16:53:59 +02:00
askama.toml Remove built-in auth ui in favor of component. To install the comoponentized auth-ui run trail components add trailbase/auth_ui. 2025-09-23 22:24:47 +02:00
build.rs Remove built-in auth ui in favor of component. To install the comoponentized auth-ui run trail components add trailbase/auth_ui. 2025-09-23 22:24:47 +02:00
Cargo.toml Stop encoding SQL values as generic JSON values (outside the context of the record API), i.e. for admin APIs and between WASM host/guest. 2025-10-21 16:40:45 +02:00
Makefile Various fixes and improvements. 2026-03-16 11:06:48 +01:00
README.md Add a dedicated README.md to auth ui crate. 2025-09-19 20:25:42 +02:00

TrailBase Auth UI WASM Component

The default Auth UI that is (used to be) built into TrailBase as a separate WASM component.

Building your own Auth UIs was always an option, both client side and server-side. Unbundling the Auth UI,

  • Makes it easier to customize and build your own.
  • Demonstrates the composability of WASM components along others as sort of an early-day plugin system.
  • You don't pay the cost if you don't use it.

Implementation Details

This crate mostly uses plain HTML forms and server-side rendering (the user's profile page uses JavaScript) to allow even no-script users to sign in. Astro is used in SSG-mode to generate the templates, which are then rendered by the Rust WASM component using the askama crate.