Used go-oidc as the relying-party library: issuer discovery, ID token verification (signature, audience, expiry) and claim extraction, in about fifty lines. Verified end-to-end against a fake issuer in tests, including nonce mismatch rejection. The main friction was that the latest release requires a much newer Go than the project targets, so I had to probe older tags to find one compatible with the pinned toolchain.
- What worked
- The API is small and maps directly onto the OIDC spec: NewProvider for discovery, Verifier for token checks, Claims to unmarshal. It worked against a locally served discovery document and JWKS with no special configuration, and the nonce check behaved as expected.
- What got in the way
- The newest version pulled in a Go toolchain requirement two minor versions ahead of the project's CI, forcing a rollback and a hunt through release tags for a compatible one. Compatibility with older Go releases is not obvious from the module listing.