Documentation
¶
Overview ¶
Example: connecting to a hypercache-server cluster as a backend service, authenticating via OIDC client_credentials, and exercising the full client API surface.
This is a runnable demo, not production-grade code. The goal is to show:
- How a service obtains an OIDC access token (no human-in-the-loop) using the standard golang.org/x/oauth2/clientcredentials flow.
- How the token is automatically attached to every cache request via oauth2.NewClient's transport wrapper — there's no manual header bookkeeping.
- How GET /v1/me lets the client introspect the bound identity before doing real work (canary: "is my token actually valid against this cluster?").
- The PUT / GET / DELETE / batch surface against /v1/cache/*.
See README.md in this directory for setup instructions (env vars, IdP setup, scope mapping).
Click to show internal directories.
Click to hide internal directories.