Help us shape the future of Go! Take the 2026 Go Developer Survey

examples/

directory
v0.1.0-alpha.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2026 License: MIT

Directories

Path Synopsis
Command authserver runs a disposable host that operates an OAuth 2.0 authorization server and OpenID Connect provider with plugin/authserver, together with a demo relying party on a second origin.
Command authserver runs a disposable host that operates an OAuth 2.0 authorization server and OpenID Connect provider with plugin/authserver, together with a demo relying party on a second origin.
Command browser runs the local password authentication journey.
Command browser runs the local password authentication journey.
testdb command
Command testdb removes only a uniquely named browser, client or react test schema.
Command testdb removes only a uniquely named browser, client or react test schema.
Command client hosts the framework-neutral TypeScript client against the real Go server: the shared HTTPS loopback host (core credentials, the magic-link plugin, the OAuth plugin bound to a built-in mock OIDC provider and a local mail preview) plus a page that talks to the API only through @sigil-auth/client.
Command client hosts the framework-neutral TypeScript client against the real Go server: the shared HTTPS loopback host (core credentials, the magic-link plugin, the OAuth plugin bound to a built-in mock OIDC provider and a local mail preview) plus a page that talks to the API only through @sigil-auth/client.
internal
loopback
Package loopback is the HTTPS loopback host shared by the browser examples that drive the TypeScript packages against the real Go server: core credentials with verification and reset mail, the magic-link plugin, the OAuth plugin bound to a built-in mock OIDC provider, and a development mail preview, served under a throwaway certificate on a loopback address.
Package loopback is the HTTPS loopback host shared by the browser examples that drive the TypeScript packages against the real Go server: core credentials with verification and reset mail, the magic-link plugin, the OAuth plugin bound to a built-in mock OIDC provider, and a development mail preview, served under a throwaway certificate on a loopback address.
Command nethttp demonstrates embedding Sigil in an application-owned net/http server: validated configuration, the mounted authentication API, host routes protected by RequireSession, trusted host capabilities, abuse admission and graceful shutdown.
Command nethttp demonstrates embedding Sigil in an application-owned net/http server: validated configuration, the mounted authentication API, host routes protected by RequireSession, trusted host capabilities, abuse admission and graceful shutdown.
Command oauth-smoke drives the link, sign-in and unlink journeys of the Google and GitHub adapters against the real providers from an operator's browser.
Command oauth-smoke drives the link, sign-in and unlink journeys of the Google and GitHub adapters against the real providers from an operator's browser.
Command organization runs a disposable, host-side organization journey.
Command organization runs a disposable, host-side organization journey.
Command profile runs a disposable custom-field journey against PostgreSQL: operator migrations, an owner update over HTTP, a back-office write of private and read-only fields, and the typed Go view.
Command profile runs a disposable custom-field journey against PostgreSQL: operator migrations, an owner update over HTTP, a back-office write of private and read-only fields, and the typed Go view.
fields
Package fields declares the example application's custom account fields.
Package fields declares the example application's custom account fields.
generate command
Command generate rewrites the profile example's generated Go types and its OpenAPI export from fields.Schema.
Command generate rewrites the profile example's generated Go types and its OpenAPI export from fields.Schema.
Command react is the Go-plus-React example: the shared HTTPS loopback host (core credentials, magic links, the OAuth plugin with a mock provider and a local mail preview) in front of a Node renderer that server-renders the React pages with @sigil-auth/react and forwards each request's session cookie to the API through a per-request server client.
Command react is the Go-plus-React example: the shared HTTPS loopback host (core credentials, magic links, the OAuth plugin with a mock provider and a local mail preview) in front of a Node renderer that server-renders the React pages with @sigil-auth/react and forwards each request's session cookie to the API through a per-request server client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL