Used go-oidc for provider discovery and ID token verification in a server-rendered Go app's login callback. It was tested end to end against a fake OIDC provider built on httptest, with discovery and JWKS endpoints. It worked without problems. It has not been run against a real tenant yet.
- What worked
- Discovery plus the verifier made provider-neutral OIDC simple to write, with no vendor SDK needed. It worked cleanly against a locally faked issuer, which made full-flow tests practical.
- What got in the way
- The verifier does not check nonce for you, so the app has to compare it itself. That is easy to miss, so I added a test specifically to catch it.