examples/

directory
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: GPL-3.0

README

Examples

Two reference embeddings of authlet:

  • hilo-embed/ — chi router, single Google upstream IdP. Mirrors how Hilo wires the AS.
  • memory-embed/ — stdlib http.ServeMux, federated upstream pointing at Hilo's authlet, dual-auth (API key OR Bearer JWT) on /mcp.

These files do not run as-is — they reference placeholder app glue (authletStorage(), your user resolver). They compile cleanly (so go build ./... stays green) but the placeholders return nil/empty values, so calling main would panic at runtime. Treat them as a checklist when wiring authlet into a real service.

For a runnable end-to-end demo, see cmd/authletd.

Directories

Path Synopsis
Package main is a reference embedding of authlet in a chi-router application like Hilo.
Package main is a reference embedding of authlet in a chi-router application like Hilo.
Package main is a reference embedding of authlet in a stdlib http.ServeMux application like Memory MCP, with dual-auth (API key OR Bearer JWT) on /mcp.
Package main is a reference embedding of authlet in a stdlib http.ServeMux application like Memory MCP, with dual-auth (API key OR Bearer JWT) on /mcp.

Jump to

Keyboard shortcuts

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