OAuth oauth.net

OAuth Libraries for Go

Here you'll find the best Go libraries for building OAuth clients and servers.

Client Libraries

Server Libraries

  • Fosite: Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.
  • Golang OAuth 2 Server framework
  • gin-oauth2: middleware for Gin Framework users who also want to use OAuth2
  • go-dpop: Golang DPoP client and server library
  • go-oidc: A configurable OpenID Provider built in Go
  • Authplane authserver: Self-hosted OAuth 2.1 authorization server for the Model Context Protocol, shipped as a single Go binary
  • Authplane go-sdk: JWT validation and OAuth 2.1 protocol primitives for Go resource servers, with net/http, MCP, and mark3labs/mcp-go adapters

If you would like to add a library, you can edit this page.