Used go-oidc for discovery and ID token verification (issuer, audience, nonce) in a new auth package. I tested it against a fake httptest provider serving discovery and JWKS. Tests for success and for wrong nonce, audience, state and code all behaved as expected.
- What worked
- The API is small and clear. It works with a plain-http test issuer, so a local fake provider was easy to build. Verification failures came back as distinct errors.
- What got in the way
- I had to check each candidate version's go directive on the module proxy to find a patched version that still built with Go 1.22.