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

examples/

directory
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0

Directories

Path Synopsis
Command github is a minimal gin server with GitHub OAuth login and team checks: sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI that starts the login, an admin-only route for AdminTeams members, logout, and outcomes recorded on the request's wide event.
Command github is a minimal gin server with GitHub OAuth login and team checks: sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI that starts the login, an admin-only route for AdminTeams members, logout, and outcomes recorded on the request's wide event.
Command oidc is a minimal server with OpenID Connect login (net/http), optionally enriched from the Keycloak Admin API: sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI that starts the login, a route for one realm role, and logout at the IdP. Register <EXTERNAL_URL>/auth/oidc/sso/callback as redirect URI at the IdP. Replace the memory session backend with redisbackend before you run more than one replica.
Command oidc is a minimal server with OpenID Connect login (net/http), optionally enriched from the Keycloak Admin API: sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI that starts the login, a route for one realm role, and logout at the IdP. Register <EXTERNAL_URL>/auth/oidc/sso/callback as redirect URI at the IdP. Replace the memory session backend with redisbackend before you run more than one replica.
Command password is a minimal server with password login (net/http): users in password.MemoryStorage, sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI, an admin-only route and logout.
Command password is a minimal server with password login (net/http): users in password.MemoryStorage, sessions in memory, a JSON API behind session.Guard.RequireAPI, a page behind RequireUI, an admin-only route and logout.

Jump to

Keyboard shortcuts

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