Go OAuth

Open-source Go projects categorized as OAuth
Oauth2 SSO Oidc Go JWT

Top 14 Go OAuth Projects

  1. tailscale

    The easiest, most secure way to use WireGuard and 2FA.

    Project mention: Self-hosting like a final boss: what I actually run on my home lab (and why) | dev.to | 2025-06-19

    Tailscale: mesh VPN, zero config. Just install and forget. Perfect for personal/private access.

  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. casbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN

    Project mention: Casbin: An authorization library that supports authz models like ACL, RBAC, ABAC | news.ycombinator.com | 2025-05-29
  4. Ory Hydra

    The only web-scale, fully customizable OpenID Certifiedβ„’ OpenID Connect and OAuth2 Provider in the world. Become an OpenID Connect and OAuth2 Provider over night. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters. Relied upon by OpenAI and others for web-scale security.

    Project mention: Cloudlflare builds OAuth with Claude and publishes all the prompts | news.ycombinator.com | 2025-06-02

    Very impressive, and at the same time very scary because who knows what security issues are hidden beneath the surface. Not even Claude knows! There is very reliable tooling like https://github.com/ory/hydra readily available that has gone through years of iteration and pentests. There are also lots of libraries - even for NodeJS - that have gone through certification.

    In my view this is an antipattern of AI usage.

  5. hanko

    The Complete Authentication and User Management Solution for the Passkey Era. Open Source Alternative to Clerk, Auth0, et al.

    Project mention: My Journey with the OSS.GG Hackathon: A Fulfilling Open Source Experience | dev.to | 2024-10-28

    Participating in the OSS.GG hackathon has been an exciting and enriching experience. Engaging with projects from multiple partners like Dub, Formbricks, Hanko, OpenBB, Papermark, Twenty, and Unkey offered me the opportunity to explore the vast landscape of open source. Through this hackathon, I didn’t just contribute to code; I also got hands-on experience in non-code contributions, which opened up new avenues for collaboration and learning.

  6. cli

    🧰 A zero trust swiss army knife for working with X509, OAuth, JWT, OATH OTP, etc. (by smallstep)

    Project mention: Setting up a trusted, self-signed SSL/TLS certificate authority in Linux | news.ycombinator.com | 2025-02-17

    I previously used openssl-based scripts to generate certificates to use for local development or applications on a private network. I have since moved to using the step CLI [1].

    OpenSSL is powerful, but it's hard to figure out how to use correctly. Each command seems cryptic no matter how many times I use it.

    The step CLI is a lot simpler, even though it has a few quirks: generating PKCS1 formatted private keys instead of the newer PKCS7 format, making every leaf certificate eligible to be either a server certificate or a client certificate, and absurdly low default certificate expirations.

    1: https://github.com/smallstep/cli

  7. S.S.Octopus

    sso, aka S.S.Octopus, aka octoboi, is a single sign-on solution for securing internal services

  8. fosite

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

  9. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  10. oidc

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

  11. oauth2c

    User-friendly OAuth2 CLI

  12. keycloak-ext-operator

    Creates OAuth clients in Keycloak and creates corresponding secrets in kubernetes

  13. basic-auth-gin

    Basic-auth-gin v1 πŸš€ is a swift RESTful API framework built atop the Gin Framework 🌐 and MongoDB πŸ—„οΈ. It boasts JWT authentication middleware πŸ”, Google OAuth API, SendGrid email API πŸ“§, and SSL support πŸ”’. Designed for ease of use with environment variable support 🌍, it can be quickly installed and tested using make commands βš™οΈ.

  14. disgoauth

    Easy-to-use Discord OAuth2.0 Implementation for Go

  15. gotrxx

    gotrxx is a OAuth2 authorization server written in go, with support for Authorization Code Grant with PKCE, Client Credentials Grant and Password Grant.

  16. authduck

    OIDC Server Playground for development & testing

    Project mention: Show HN: Authduck – Playground Server for OpenID Connect Clients | news.ycombinator.com | 2024-12-05
  17. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

Go OAuth discussion

Log in or Post with

Go OAuth related posts

  • Your laptop can run a full devops stack here’s how I set mine up

    3 projects | dev.to | 19 Jun 2025
  • A new generation of Tailscale access controls

    3 projects | news.ycombinator.com | 1 Jun 2025
  • EasyTier – P2P mesh VPN written in Rust using Tokio

    3 projects | news.ycombinator.com | 2 Jun 2025
  • The Umbrel OS for home-lab, self-hosted tech solutions

    1 project | dev.to | 11 May 2025
  • Tailscale Enterprise Plan 9 Support

    1 project | news.ycombinator.com | 2 Apr 2025
  • Ask HN: What is the most secure way of baby monitoring?

    1 project | news.ycombinator.com | 28 Mar 2025
  • Dear hosters, you are selling wood, not furniture

    2 projects | news.ycombinator.com | 19 Mar 2025
  • A note from our sponsor - SaaSHub
    www.saashub.com | 19 Jun 2025
    SaaSHub helps you find the best software and product alternatives Learn more β†’

Index

What are some of the best open-source OAuth projects in Go? This list will help you:

# Project Stars
1 tailscale 23,118
2 casbin 18,769
3 Ory Hydra 16,275
4 hanko 8,188
5 cli 3,897
6 S.S.Octopus 3,111
7 fosite 2,407
8 oidc 1,583
9 oauth2c 818
10 keycloak-ext-operator 23
11 basic-auth-gin 13
12 disgoauth 10
13 gotrxx 5
14 authduck 4

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

Did you know that Go is
the 4th most popular programming language
based on number of references?