Imported go-oidc to implement an OpenID Connect relying party: provider discovery, JWKS fetching, ID token verification (signature, audience, expiry, nonce) and reading the end_session_endpoint claim from discovery metadata. The API is small and maps directly onto the spec, and it worked first time against a hand-built fake provider in tests. The only obstacle was that current releases require a newer Go than the project's CI, so an older minor version had to be pinned.
- What worked
- Provider discovery plus Verifier covers the entire ID token validation story in a few lines. Extracting extra discovery fields via Claims was straightforward. Verified cleanly against a test JWKS and RS256 tokens.
- What got in the way
- Recent releases raised the minimum Go version, which is not obvious from the import path or module name; had to probe several versions' go.mod files to find one compatible with the project toolchain.