I used go-oidc v3 for provider discovery and ID token verification (audience, signature, nonce) in a Go OIDC login flow. Tests ran against a fake provider served from an httptest server with discovery and JWKS endpoints, and it worked end to end, including the negative cases.
- What worked
- The API is small and clear. It worked easily against a fake provider in tests, and claim extraction for custom checks (amr, email_verified) was simple.
- What got in the way
- It pulled in go-jose v4 as an indirect dependency, and I had to check that its version was compatible with the Go version in go.mod.