# Keyring for Rust Documentation

Source: https://keyringauth.com/docs/0.x/rust/

Keyring has a Rust implementation for [Laravel for Rust](https://crates.io/crates/laravel-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](https://github.com/keyringauth/keyring/blob/main/contract/README.md), 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](https://keyringauth.com/docs/0.x/) page by page, and say where the crate differs. [Differences From PHP](https://keyringauth.com/docs/0.x/rust/differences) collects every difference in one place.

## Getting Started

- [Quick Start](https://keyringauth.com/docs/0.x/rust/quick-start): the starter kit, the pages to build, and your settings page.
- [Installation](https://keyringauth.com/docs/0.x/rust/installation): requirements, the dependency, and registering the provider.
- [Configuration](https://keyringauth.com/docs/0.x/rust/configuration): every setting in `KeyringConfig`, and the provider's hooks.
- [Upgrading From Fortify](https://keyringauth.com/docs/0.x/rust/upgrading-from-fortify): importing two-factor data, and mapping Fortify's concepts.

## Signing In

- [Factors](https://keyringauth.com/docs/0.x/rust/factors): the built-in factors, and writing your own.
- [Policies](https://keyringauth.com/docs/0.x/rust/policies): what each user must prove.
- [The Sign In Flow](https://keyringauth.com/docs/0.x/rust/sign-in-flow): the login form, the challenge page, the pipeline, responses and pages.
- [Step-Up](https://keyringauth.com/docs/0.x/rust/step-up): asking a signed-in user to prove who they are again.
- [Passkeys & Security Keys](https://keyringauth.com/docs/0.x/rust/passkeys): WebAuthn settings, and what Keyring checks.
- [Single Sign-On](https://keyringauth.com/docs/0.x/rust/sso): signing in with Google, Microsoft, GitHub or OpenID Connect.
- [More Identity Providers](https://keyringauth.com/docs/0.x/rust/sso-providers): other OpenID Connect providers, and drivers of your own.

## Account Security

- [Managing Authenticators](https://keyringauth.com/docs/0.x/rust/authenticators): adding, renaming and removing sign-in methods, and recovery codes.
- [Devices & Sessions](https://keyringauth.com/docs/0.x/rust/devices-and-sessions): device recognition, the session registry, timeouts and pruning.
- [Protected Changes](https://keyringauth.com/docs/0.x/rust/protected-changes): changing the email address and the password.
- [Impersonation](https://keyringauth.com/docs/0.x/rust/impersonation): signing in as another user, with a time limit and an audit trail.
- [Risk](https://keyringauth.com/docs/0.x/rust/risk): risk signals and what to do about them.
- [Security Log & Emails](https://keyringauth.com/docs/0.x/rust/security-log-and-emails): the activity log, "was this you?" alerts and security emails.
- [Events](https://keyringauth.com/docs/0.x/rust/events): every event Keyring dispatches.

## Security

- [Security](https://keyringauth.com/docs/0.x/rust/security): what Keyring guarantees, and where the crate differs.
- [OWASP ASVS and NIST SP 800-63B](https://keyringauth.com/docs/0.x/rust/owasp-asvs): where the crate stands on each requirement.

## Building Your Application

- [Frontend](https://keyringauth.com/docs/0.x/rust/frontend): the Inertia pages, and the `@keyringjs/keyring` package.
- [Headless Frontends](https://keyringauth.com/docs/0.x/rust/headless): a frontend Laravel for Rust doesn't serve.
- [Starter Kit](https://github.com/keyringauth/keyring/blob/main/rust/starter-kit/README.md): every page, written in React.
- [Extending Keyring](https://keyringauth.com/docs/0.x/rust/extending): every option and hook in one place.
- [Recipes](https://keyringauth.com/docs/0.x/rust/recipes): worked examples.
- [Testing](https://keyringauth.com/docs/0.x/rust/testing): test helpers, fakes, factories and the conformance checks.

## The Crate

- [Differences From PHP](https://keyringauth.com/docs/0.x/rust/differences): what isn't there yet, what behaves differently, and what laravel-rust would need.
- [Crate README](https://github.com/keyringauth/keyring/blob/main/rust/laravel-keyring/README.md): what's ported, part by part, and how to run the crate's own tests.
