Go Auth

Open-source Go projects categorized as Auth

Top 22 Go Auth Projects

  • casbin

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

    Project mention: A guide to Auth & Access Control in web apps 🔐 | dev.to | 2023-11-07

    https://casbin.org/ (multiple approaches, multiple languages, provider) Open source authZ library that has support for many access control models (ACL, RBAC, ABAC, …) and many languages (Go, Java, Node.js, JS, Rust, …). While somewhat complex, it is also powerful and flexible. They also have their Casdoor platform, which is authN and authZ provider.

  • jwt

    Community maintained clone of https://github.com/dgrijalva/jwt-go (by golang-jwt)

    Project mention: [Go] Try HTTP Authentication 2 | dev.to | 2023-06-27

    golang-jwt/jwt - GitHub

  • InfluxDB

    Collect and Analyze Billions of Data Points in Real Time. Manage all types of time series data in a single, purpose-built database. Run at any scale in any environment in the cloud, on-premises, or at the edge.

  • hanko

    Auth and user management for the passkey era

    Project mention: Who's hiring developer advocates? (September 2023) | dev.to | 2023-09-05

    Link to GitHub -->

  • fosite

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

    Project mention: Golang library for AuthN/AuthZ | /r/golang | 2023-06-06

    You can take a look to https://github.com/ory/fosite

  • aws-iam-authenticator

    A tool to use AWS IAM credentials to authenticate to a Kubernetes cluster

  • authorizer

    Your data, your control. Fully open source, authentication and authorization. No lock-ins. Deployment in Railway in 120 seconds || Spin a docker image as a micro-service in your infra. Built in login page and Admin panel out of the box.

    Project mention: Authorizer, an open source authentication and authorization solution | news.ycombinator.com | 2023-09-12
  • caddy-security

    🔐 Authentication, Authorization, and Accounting (AAA) App and Plugin for Caddy v2. 💎 Implements Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA/2FA with App Authenticators and Yubico. 💎 Authorization with JWT/PASETO tokens. 🔐

    Project mention: Security flaws in an SSO plugin for Caddy | news.ycombinator.com | 2023-09-18

    > September 18, 2023: The disclosure blog post was released and issues were filed with the original project repository.

    I don't see those issues listed in the GitHub project issue tracker https://github.com/greenpau/caddy-security/issues. Have they been deleted?

  • Onboard AI

    Learn any GitHub repo in 59 seconds. Onboard AI learns any GitHub repo in minutes and lets you chat with it to locate functionality, understand different parts, and generate new code. Use it for free at www.getonboard.dev.

  • gotrue

    A JWT based API for managing users and issuing JWT tokens (by supabase)

    Project mention: Supabase Local Dev: migrations, branching, and observability | news.ycombinator.com | 2023-08-09

    I hate to be this guy, really. I would like to adopt Supabase in company, but I cannot yet.

    I commented on a HN post almost a year ago about how hard is to do custom Auth with Supabase. I still haven't find a good solution about it. For example, LDAP Auth is quite crucial in most enterprise settings, yet I have no idea how to do it with Supabase. I can find a workaround for PostgREST by putting a secondary API written in some other language and fiddling with reverse proxies. But how to do with Supabase, such that all other services (realtime,...) works nicely? Is it so hard to provide a function that accept a custom strategy given the HTTP request data?

    I created an issue[0] almost a year ago on Supabase, which was transferred to Gotrue. I even provided some code examples from Laravel. Even if it is not specifically for LDAP, make some API available to do so, please.

    [0] https://github.com/supabase/gotrue/issues/904

  • paseto

    Platform-Agnostic Security Tokens implementation in GO (Golang) (by o1egl)

  • restish

    Restish is a CLI for interacting with REST-ish HTTP APIs with some nice features built-in

  • go-guardian

    Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.

  • mosquitto-go-auth

    Auth plugin for mosquitto.

    Project mention: Securing MQTT: A Guide to Basic Authentication | dev.to | 2023-10-02

    Check auth plugin for more complex use cases.

  • casbin-server

    Casbin as a Service (CaaS)

  • intents-operator

    Manage network policies, Istio Authorization Policies, and Kafka ACLs in a Kubernetes cluster with ease.

    Project mention: Alternative to Network Policys | /r/kubernetes | 2023-02-02

    As you've mentioned, it is not possible to define deny rules using the native NetworkPolicy resource. Instead, you could use your CNI’s implementation for network policies. If you use Calico as your CNI you can use Calico's network policies to create deny rules. You can also take a look at Otterize OSS, an open-source solution my team and I are working on recently. It simplifies network policies by defining them from the client’s perspective in a ClientIntents resource. You can use the network mapper to auto-generate those ClientIntents from the traffic in your cluster, and then deploy them and let the intents-operator manage the network policies for you.

  • authz

    🛡️ Authorization backend that comes with a UI for RBAC and ABAC permissions

    Project mention: Authorization back end that comes with a front end | news.ycombinator.com | 2023-04-16
  • Coze

    Coze is a cryptographic JSON messaging specification.

  • auth-server

    Simple authentication and authorization server

  • json-adapter

    JSON adapter for Casbin

    Project mention: Cerbos v0.27 released! Do not reinvent user permissions | /r/golang | 2023-06-08

    Functionality wise, looks similar to https://github.com/Permify/permify and https://github.com/casbin/casbin. Nice addition to the authz list !!

  • fiber-jwt

    JWT for fiber

  • authi

    An simple JWT Authentication service written in golang

    Project mention: Backend developer looking for a great team to support | /r/INAT | 2023-03-20
  • chi-authz

    Chi Authorization Middleware based on Casbin

  • fiber-custom-jwt

    A customize JWT strategy for golang using fiber

    Project mention: [help] - Go for web app | /r/golang | 2023-01-17
  • SaaSHub

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

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). The latest post mention was on 2023-12-02.

Go Auth related posts


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

Project Stars
1 casbin 16,081
2 jwt 5,676
3 hanko 4,844
4 fosite 2,180
5 aws-iam-authenticator 2,079
6 authorizer 1,269
7 caddy-security 1,028
8 gotrue 916
9 paseto 767
10 restish 560
11 go-guardian 501
12 mosquitto-go-auth 446
13 casbin-server 282
14 intents-operator 261
15 authz 201
16 Coze 94
17 auth-server 68
18 json-adapter 15
19 fiber-jwt 8
20 authi 1
21 chi-authz 0
22 fiber-custom-jwt 0
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives