Keyring docsOverview

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 the Keyring facade.
  • 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

Security

Building Your Application

  • Frontend: the Inertia pages, and the @keyringjs/keyring package.
  • 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