The OpenID Connect SDK for Go is an easy-to-use client and server implementation that follows the OpenID Connect (OIDC) standard. The library includes packages for clients, relying parties, resource servers, and OpenID providers. It also provides examples and code for different scenarios. The SDK supports various flows, including code flow, implicit flow, hybrid flow, and client credentials. Features such as refresh tokens, discovery, JWT profile, PKCE, token exchange, and device authorization are also supported. The library is certified for the basic and config profile and can be used as an OpenID Provider. This library fills a gap in the Go OIDC library ecosystem and is backed by ZITADEL’s commitment to IAM.
https://github.com/zitadel/oidc