Go docs · 0.x
Keyring for Go Documentation
On this page
Keyring has a Go implementation for Laravel for Go: the keyringauth.com/go package. It handles the authentication side of a Laravel for Go 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 package 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 Go port 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 module, and registering the package.
- Configuration: every field of
keyring.Config, and the hooks onKeyring. - 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: other OpenID Connect providers, and drivers of your own.
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 security log, "was this you?" alerts and security emails.
- Events: every event Keyring dispatches.
Security
- Security: what Keyring guarantees, and where the Go port differs.
- OWASP ASVS and NIST SP 800-63B: where the Go port stands on each requirement.
Building Your Application
- Frontend: the Inertia pages, and the
@keyringjs/keyringpackage. - Headless Frontends: a frontend Laravel for Go doesn't serve.
- Starter Kit: every page but the sign-in-link page (which only matters with
WithLink()on), written in React. - Extending Keyring: every option and hook in one place.
- Recipes: worked examples.
- Testing: test helpers, fakes, factories and the conformance checks.
The Package
- Differences From PHP: what isn't there yet, what behaves differently, and what Laravel for Go would need.
- Source: the package, a file per concern, and the contract app that wires it up. Its own tests run with
go test ./...ingo/keyring; see Keyring's Own Tests.