examples/

directory
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2026 License: Apache-2.0

Directories

Path Synopsis
Command main is an API protected by JWT validation, principal extraction and a role check.
Command main is an API protected by JWT validation, principal extraction and a role check.
Command main is a minimal single-page app and API protected by a browser session: OIDC login, encrypted session cookies and a backend-for-frontend.
Command main is a minimal single-page app and API protected by a browser session: OIDC login, encrypted session cookies and a backend-for-frontend.
githubactions-oidc
client command
Command main demonstrates retrieving and decoding a GitHub Actions OIDC token.
Command main demonstrates retrieving and decoding a GitHub Actions OIDC token.
validator command
Command main demonstrates validating a GitHub Actions OIDC token.
Command main demonstrates validating a GitHub Actions OIDC token.
Command main demonstrates wrapping an HTTP server with OIDC token validation middleware, accepting GitHub Actions OIDC tokens.
Command main demonstrates wrapping an HTTP server with OIDC token validation middleware, accepting GitHub Actions OIDC tokens.
Command main calls another service as this service's own identity, using oidc.NewIdentityClient.
Command main calls another service as this service's own identity, using oidc.NewIdentityClient.

Jump to

Keyboard shortcuts

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