Keyring for Rust docsOverview

Keyring for Rust Documentation

On this page

Keyring has a Rust implementation for Laravel for Rust: the laravel-keyring crate. It handles the authentication side of a Laravel for Rust application: signing in, registration, password resets, email verification, second factors, passkeys, single sign-on, step-up, devices, sessions and account changes. It ships no UI. Your app owns the pages and the account actions.

The crate is early. It shares no code with the PHP package, but it shares a database and the HTTP contract suite, so the routes, JSON, status codes and tables are the same, and a frontend built against one works with the other. These pages mirror the PHP docs page by page, and say where the crate differs. Differences From PHP collects every difference in one place.

Getting Started

  • Quick Start: the starter kit, the pages to build, and your settings page.
  • Installation: requirements, the dependency, and registering the provider.
  • Configuration: every setting in KeyringConfig, and the provider's hooks.
  • Upgrading From Fortify: importing two-factor data, and mapping Fortify's concepts.

Signing In

Account Security

Security

Building Your Application

The Crate

  • Differences From PHP: what isn't there yet, what behaves differently, and what laravel-rust would need.
  • Crate README: what's ported, part by part, and how to run the crate's own tests.