Categories

Authentication and Authorization

Libraries for implementing authentication and authorization.

Repos

311

Stars

278,743

30 days

+3,083

o1egl

Platform-Agnostic Security Tokens implementation in GO (Golang)

Created Jan 2018

auth authentication decoder encoder go
Total 940
30 days +0
shaj13

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

Created May 2020

2fa auth authentication authenticator bearer-tokens
Total 613
30 days +0
leodip

Goiabada is an OAuth2 / OpenID Connect server written in Go.

Created Aug 2023

authentication authorization identity-management oauth2 oauth2-server
Total 204
30 days +0
brianvoe

Simple JWT Golang

Created Jun 2019

authentication golang jsonwebtoken jwt simple
Total 123
30 days +0

More

apache

Apache Casbin: an authorization library that supports access control models like ACL, RBAC, ABAC.

Created Apr 2017

abac access-control acl apache auth
Total 20,523
30 days +65
zitadel

ZITADEL - Identity infrastructure, simplified for you.

Created Mar 2020

2fa authentication authorization fido2 fips-140-3
Total 15,629
30 days +282
teamhanko

Modern authentication, on your terms. Open source alternative to Auth0, Clerk, WorkOS, Stytch.

Created Mar 2022

2fa authentication ciam fido2 iam
Total 9,076
30 days +42
tinyauthapp

The tiniest OpenID Certified™ authorization and authentication server you have ever seen.

Created Jan 2025

2fa authentication caddy golang middleware
Total 8,533
30 days +148
netlify

An JWT based API for managing users and issuing JWT tokens.

Created May 2016

authentication jwt production
Total 4,510
30 days +12
marmotedu

企业级的 Go 语言实战项目:认证和授权系统(带配套课程)

Created May 2021

application authentication authorization gin go
Total 4,219
30 days +8
ory

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

Created Dec 2015

auth authentication authorization golang hacktoberfest
Total 2,635
30 days +11
supabase

A JWT based API for managing users and issuing JWT tokens

Created Jul 2020

auth authentication authorization client-auth go
Total 2,607
30 days +29
greenpau

🔐 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. 🔐

Created Jan 2022

access-control acl auth authentication authorization
Total 2,284
30 days +34
authgear

Open source Auth0/Keycloak alternative. Passkeys, SSO, MFA, passwordless, biometric login. Self-hosted or cloud. Enterprise-ready for SaaS & mobile apps

Created Jun 2020

2fa auth0 authentication biometric clerk-alternative
Total 2,161
30 days +43
authorizerdev

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.

Created Jun 2021

2fa auth authentication authorization docker
Total 2,126
30 days +16
go-pkgz

Authenticator via oauth2, direct, email and telegram

Created Dec 2018

authentication custom-oauth2 go golang jwt
Total 1,356
30 days +2
zalando

Middleware for Gin Framework users who also want to use OAuth2

Created Sep 2015

authentication authorization gin gin-middleware oauth2
Total 619
30 days +0
thunder-id

ThunderID, an LF Decentralized Trust project, is a high-performance, open-source identity stack designed for developers to secure and manage access for humans, AI agents, and machines through fully composable identity flows.

Created May 2025

access-management ai-agents authentication authorization go
Total 617
30 days +28
thecodearcher

Modern, composable authentication for Go

Created Aug 2025

api-key auth authentication better-auth golang
Total 573
30 days +25
raystack

Frontier is an all-in-one user management platform that provides identity, access and billing management to help organizations secure their systems and data. (Open source alternative to Clerk, WorkOS)

Created Feb 2021

authentication authorization billing clerkauth dataops
Total 346
30 days +1
eko

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

Created Dec 2022

abac auth authentication authorization authorizer
Total 299
30 days +1
Authula

An open-source authentication solution that scales with you. Embed it as a library in your Go app, or run it as a standalone auth server with any tech stack.

Created Oct 2025

api authentication authorization backend go
Total 282
30 days +9
highflame-ai

Highflame ZeroID: Autonomous Agent Identity Management System (AAIMS)

Created Mar 2026

agent-authentication ai-agents authentication credentials golang
Total 214
30 days +11
arcanericky

Time-Based One-Time Password Code Generator

Created May 2019

2fa authentication authenticator passcode password
Total 168
30 days +0
i-core

An Identity Provider for ORY Hydra over LDAP

Created Jun 2019

active-directory authentication hydra identity ldap
Total 160
30 days +0
auth0-samples

Auth0 Integration Samples for Go Web Applications

Created Oct 2016

auth0 authentication dx-sdk-quickstart go quickstart
Total 157
30 days +0
msteinert

Go wrapper module for the Pluggable Authentication Modules (PAM) API

Created Mar 2015

authentication golang pam
Total 154
30 days +0
wiltonsr

An open source Traefik Middleware that enables authentication via LDAP in a similar way to Traefik Enterprise

Created Sep 2021

authentication authentication-middleware gandalpher go go-ldap
Total 132
30 days +0
jellydator

Straightforward HTTP session management

Created Jul 2019

authentication cookies go golang http
Total 132
30 days +0
gjovanovicst

A modern, production-ready Go REST API for authentication and authorization, featuring social login, email verification, JWT, and Redis integration.

Created Jun 2025

api authentication authorization docker email-verification
Total 130
30 days +0
casdoor

Go client SDK for Casdoor

Created May 2021

auth authentication authn casdoor go
Total 130
30 days +3
ggicci

🆔 Caddy Module JWT Authentication

Created Jun 2021

authentication caddy-authentication caddy-module jwt jwt-authentication
Total 126
30 days +1
vigiloauth

OAuth 2.0 & OIDC Auth Server and Identity Provider

Created Nov 2024

auth-server authentication authorization golang identity-provider
Total 102
30 days +1
connectrpc

Authentication middleware for Connect.

Created Oct 2023

authentication authn connectrpc golang protobuf
Total 102
30 days +1
johanbrandhorst

Examples of client authentication with gRPC

Created Jul 2018

authentication authorization client grpc jwt
Total 102
30 days +1
casdoor

An open-source Identity and Access Management (IAM) / Single-Sign-On (SSO) platform with web UI supporting OAuth 2.0, OIDC, SAML, CAS, LDAP, WebAuthn, TOTP and MFA

Created Sep 2023

abac auth authentication authn authorization
Total 97
30 days +0
akamai

This library implements an Authentication handler for the Akamai OPEN EdgeGrid Authentication scheme

Created Apr 2016

akamai akamai-devexp authentication devexp devexp-edgegrid
Total 96
30 days +0
infraboard

keyauth是一个微服务权限治理中心, 提供用户认证与授权管理

Created Nov 2019

auth-provider authentication authorization microservice oauth2
Total 90
30 days +0
reugn

Simple authentication and authorization service

Created May 2020

auth authentication authentication-middleware authorization identity
Total 89
30 days +0
micro-company

Auth micro-service

Created Sep 2017

authentication golang jwt microservice
Total 86
30 days +1
piotrkowalczuk

Authorization and authentication service.

Created Apr 2015

authentication authorization golang grpc postgresql
Total 83
30 days +0
hang666

一个基于USB设备的开源高安全性认证服务解决方案,提供简易U盾实现。将任何U盘变为您的专属安全密钥 (U盾),无需特定硬件,即插即用。

Created Jul 2025

authentication mfa usb-key
Total 76
30 days +1
zitadel

A SAML 2.0 server (IdP) implementation written for Go

Created Apr 2022

authentication idp saml2
Total 71
30 days +0
MadAppGang

Universal authentication framework for web, created with go

Created Jul 2018

auth authentication golang login user
Total 66
30 days +0
josuebrunel

Simple and easy to use authentication library for Golang

Created Dec 2025

authentication betterauth easy go golang
Total 65
30 days +2
descope

Go library used to integrate with Descope

Created May 2022

authentication authorization descope go go-sdk
Total 62
30 days +0
stytchauth

Official Stytch Backend SDK for Go

Created Nov 2020

authentication golang sdk stytch
Total 62
30 days +1
mandarwagh9

MachineAuth provides authentication and permission infrastructure that allows AI agents to securely access APIs, tools, and services.

Created Feb 2026

agent-auth ai ai-agents ai-authentication ai-infrastructure
Total 61
30 days +0
nerney

Basic LDAP Authenticator for Go 🔓🔑

Created Jul 2018

active-directory authentication go golang ldap
Total 59
30 days +0
leonjza

🔑 A simple, cookie based Traefik middleware plugin for HTTP Basic / Ceritificate Based Single Sign-on

Created Nov 2019

authentication forwardauth sso traefik traefik-plugin
Total 53
30 days +0
MicahParks

Transactional email magic link and One-Time Password (OTP) authentication platform. Sign up, log in, password resets, email verification, and more.

Created Mar 2023

authentication authentication-backend authentication-server authentication-service authn
Total 51
30 days +0
maximthomas

Gortas is an API based authentication service, allows adding authentication to your site or service with minimum efforts.

Created May 2020

2fa authentication authentication-backend authorization kerberos
Total 51
30 days +0
duo-labs

WebAuthn (FIDO2) server library written in Go

Created Oct 2017 Archived

authentication fido2 security u2f webauthn
Total 1,028
30 days +0
greenpau

Authentication Plugin for Caddy v2 implementing Form-Based, Basic, Local, LDAP, OpenID Connect, OAuth 2.0 (Github, Google, Facebook, Okta, etc.), SAML Authentication. MFA with App Authenticators and Yubico.

Created Apr 2020 Archived

authentication authentication-backend authentication-middleware authentication-portal caddy
Total 657
30 days +1
iegomez

Auth plugin for mosquitto.

Created Nov 2017 Archived

auth authentication authorization mosquitto mqtt
Total 604
30 days +0
nhost

Authentication for Hasura.

Created Jun 2021 Archived

authentication backend email-password-login emails graphql
Total 403
30 days +0
koesie10

Go package for easy WebAuthn integration

Created Sep 2018 Archived

2fa 2factor authentication login passwordless
Total 168
30 days +0

From awesome-go (MIT), plus repos sorted by Jev.