Are there any OIDC Provider libraries for Golang?

This page summarizes the projects mentioned and recommended in the original post on /r/golang

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • oidc

    Easy to use OpenID Connect client and server library written for Go and certified by the OpenID Foundation

  • I started with https://github.com/zitadel/oidc/tree/main/example/server/storage

  • oauth2

    OAuth 2.0 server library for the Go programming language. (by go-oauth2)

  • Hello, I'm a student and I'm looking for a package that lets you easily set up an OIDC provider. I have found a package (https://github.com/go-oauth2/oauth2) for OAuth2 but in order to support OIDC aswel I think I'll have to manually add some things. Unless I'm wrong, could someone help me out. Thanks!

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • Ory Hydra

    OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Works with Hardware Security Modules. Compatible with MITREid.

  • Another package you might want to consider is ORY Hydra. https://github.com/ory/hydra

  • Keycloak

    Open Source Identity and Access Management For Modern Applications and Services

  • Does it need to be in Go? Keycloak is a fully featured IDP/OIDC provider. If you just want to support the protocol, it shouldn't really matter what language it is in, unless you want to do something very customized. https://www.keycloak.org/

  • fosite

    Extensible security first OAuth 2.0 and OpenID Connect SDK for Go.

  • Zitadel and Fosite can be used to set up an OIDC provider

  • jwx

    Implementation of various JWx (Javascript Object Signing and Encryption/JOSE) technologies

  • I made a custom OIDC provider for integ tests using https://github.com/lestrrat-go/jwx, and a server than served out a .well-known/openid-configuration file and a jwks.json referenced by the openid-configuration.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts