Docs · 0.x
Keyring Documentation
On this page
Keyring handles the authentication side of a PHP Laravel 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.
Getting Started
- Quick Start: install, the pages to build, and your settings page.
- Installation: requirements, the install command, and the files it publishes.
- Configuration: every option in
config/keyring.php, and theKeyringfacade. - Upgrading From Fortify: importing two-factor data, and mapping Fortify's concepts.
Signing In
- Factors: the built-in factors, and writing your own.
- Policies: what each user must prove.
- The Sign In Flow: the login form, the challenge page, the pipeline, responses and pages.
- Step-Up: asking a signed-in user to prove who they are again.
- Passkeys & Security Keys: WebAuthn settings, and what Keyring checks.
- Single Sign-On: signing in with Google, Microsoft, GitHub or OpenID Connect.
- More Identity Providers: config for GitLab, Slack, Twitch, Okta, Auth0, Keycloak, Cognito and Salesforce, drivers for Discord, Bitbucket, Facebook and LinkedIn, and why Apple isn't supported.
Account Security
- Managing Authenticators: adding, renaming and removing sign-in methods, and recovery codes.
- Devices & Sessions: device recognition, the session registry, timeouts and pruning.
- Protected Changes: changing the email address and the password.
- Impersonation: signing in as another user, with a time limit and an audit trail.
- Risk: risk signals and what to do about them.
- Security Log & Emails: the activity log, "was this you?" alerts and security emails.
- Events: every event Keyring dispatches.
Security
- Security: what Keyring guarantees, and its known limitations.
- OWASP ASVS and NIST SP 800-63B: where Keyring stands on each requirement.
Building Your Application
- Frontend: the Inertia pages, and the
@keyringjs/keyringpackage. - Headless Frontends: a frontend Laravel doesn't serve, such as Nuxt on another subdomain, or a Nuxt or Next.js app that passes requests on to Laravel from its own origin.
- Example Application: every page, written in React.
- Extending Keyring: every option and hook in one place.
- Recipes: worked examples with real packages.
- Testing: test helpers, fakes, factories and the conformance suite.
Other Platforms
- Keyring for Rust: the early Rust crate for Laravel for Rust, with a page for each of these, and what it does differently.
- Keyring for Go: the early Go package for Laravel for Go, with a page for each of these, and what it does differently.