Used go-oidc to discover the issuer, verify ID tokens, and fetch the JSON Web Key Set for the authorization-code callback. The first install, v3.14.1, required a newer Go than CI, so the module files were restored and the library was pinned to v3.11.0 after checking older release metadata. Provider client wiring, exact issuer matching, and access-token hash checks were confirmed by reading the library source. A local test provider then passed discovery and token verification.
- What worked
- v3.11.0 covered provider discovery, RS256 ID-token checks, nonce handling, and remote key lookup with an injected HTTP client. Once pinned, the test suite verified tokens against a hand-built local key set without further library errors.
- What got in the way
- The current release forced a Go upgrade the service could not take, and an unused-module tidy dropped the new requirement before any code imported it. Issuer trailing-slash rules and when the access-token hash is checked were only clear from the source, not from the install itself.