Categories

Authentication and Authorization

Libraries for implementing authentication and authorization.

Repos

311

Stars

278,763

30 days

+3,096

golang-jwt

Go implementation of JSON Web Tokens (JWT).

Created May 2021

auth ed25519 go golang jwt
Total 9,281
30 days +33
authzed

Open Source, Google Zanzibar-inspired database for scalably storing and querying fine-grained authorization data

Created Aug 2021

abac acl authorization ciam cloud-native
Total 7,238
30 days +77
markbates

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.

Created Oct 2014

Total 6,631
30 days +16
openfga

A high-performance and flexible authorization/permission engine built for developers and inspired by Google Zanzibar.

Created Jun 2022

abac access-control authorization entitlements fga
Total 6,165
30 days +159
golang

Go OAuth2

Created Apr 2014

go golang oauth2 oauth2-client
Total 5,913
30 days +10
ory
ory / keto

The most scalable and customizable permission server on the market. Fix your slow or broken permission system with Google's proven "Zanzibar" approach. Supports ACL, RBAC, and more. Written in Go, cloud native, headless, API-first. Available as a service on Ory Network and for self-hosters.

Created Mar 2018

abac access-control acl authorization fine-grained-permissions
Total 5,427
30 days +17
alexedwards

HTTP Session Management for Go

Created Aug 2016

context go golang http session
Total 2,642
30 days +14
lestrrat-go

Complete implementation of JWx (Javascript Object Signing and Encryption/JOSE) technologies for Go. #golang #jwt #jws #jwk #jwe

Created Nov 2015

go golang jwe jwk jws
Total 2,445
30 days +5
dghubble

Go login handlers for authentication providers (OAuth1, OAuth2)

Created Jun 2015

Total 1,956
30 days +0
openshift

Golang OAuth2 server library

Created Sep 2013

Total 1,935
30 days +2
zitadel

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

Created Nov 2019

certified client code-flow code-flow-pkce discovery
Total 1,928
30 days +19
mikespook

goRBAC provides a lightweight role-based access control (RBAC) implementation in Golang.

Created Dec 2013

go rbac
Total 1,676
30 days +0
o1egl

Platform-Agnostic Security Tokens implementation in GO (Golang)

Created Jan 2018

auth authentication decoder encoder go
Total 941
30 days +1
cristalhq

Safe, simple and fast JSON Web Tokens for Go

Created Jul 2019

dependency-free go golang golang-library jose
Total 688
30 days +1
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 614
30 days +1
go-jose

An implementation of JOSE standards (JWE, JWS, JWT) in Go

Created Aug 2020

Total 552
30 days +10
pascaldekloe

JSON Web Token library

Created Mar 2018

bearer-authentication bearer-authorization bearer-tokens ecdsa ed25519
Total 361
30 days +0
abraithwaite

🍍Jeff provides the simplest way to manage web sessions in Go.

Created Aug 2018

cookie csrf-protection go golang http
Total 270
30 days +0
Kwynto

This is quick session for net/http in golang. This package is perhaps the best implementation of the session mechanism, at least it tries to become one.

Created Jun 2022

go golang session
Total 256
30 days +0
adam-hanna

This package provides json web token (jwt) middleware for goLang http servers

Created Jul 2016

Total 237
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
pthm

OpenFGA-to-PostgreSQL authorization compiler. Generates specialized SQL functions from .fga schemas that query your existing tables. Zero sync, always consistent.

Created Jan 2026

authorization database fga fine-grained-authorization openfga
Total 121
30 days +19
icza

Go session management for web servers (including support for Google App Engine - GAE).

Created Feb 2016

gae http-session session-management
Total 119
30 days +0
essentialkaos

Authenticated encrypted API tokens (IETF XChaCha20-Poly1305 AEAD) for Golang

Created Dec 2018

branca golang jwt tokens
Total 100
30 days +0
chmike

Fast, secure and efficient secure cookie encoder/decoder

Created Sep 2017

Total 87
30 days +0
adam-hanna

A dead simple, highly performant, highly customizable sessions middleware for go http servers.

Created Apr 2017

Total 80
30 days +0
jltorresm

Time-Based One-Time Password (TOTP) and HMAC-Based One-Time Password (HOTP) library for Go.

Created Aug 2020

authenticator authy google-authenticator hotp rfc-4226
Total 77
30 days +0
melvinodsa

iam platform written in golang

Created Dec 2024

Total 50
30 days +1

More

Top 100 of 282

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
ory

Internet-scale OpenID Certified™ OpenID Connect and OAuth2.1 provider that integrates with your user management through headless APIs. Solve OIDC/OAuth2 user cases over night. Consume as a service on Ory Network or self-host. Trusted by OpenAI and many others for scale and security. Written in Go.

Created May 2015

authorization cloud docker federation hydra
Total 17,692
30 days +70
zitadel

ZITADEL - Identity infrastructure, simplified for you.

Created Mar 2020

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

Headless cloud-native authentication and identity management written in Go. Scales to a billion+ users. Replace Homegrown, Auth0, Okta, Firebase with better UX and DX. Passkeys, Social Sign In, OIDC, Magic Link, Multi-Factor Auth, SMS, SAML, TOTP, and more. Runs everywhere, runs best on Ory Network.

Created May 2018

hacktoberfest identity identity-management login profile-management
Total 13,976
30 days +66
dexidp

OpenID Connect (OIDC) identity and OAuth 2.0 provider with pluggable connectors

Created Aug 2015

hacktoberfest identity-provider idp kubernetes oidc
Total 11,277
30 days +86
pocket-id

The most user-friendly OpenID Connect Certified™ and OAuth 2.0 provider that lets users sign in to your applications with passkeys.

Created Aug 2024

idp oidc passkeys self-hosted
Total 10,418
30 days +771
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,532
30 days +147
Permify

An open-source authorization as a service inspired by Google Zanzibar, designed to build and manage fine-grained and scalable authorization systems for any application. — Permify is now part of FusionAuth 🎉

Created Jul 2022

abac access-control acl authorization ciam
Total 5,978
30 days +17
cerbos

Cerbos is an open-core authorization management platform for authorizing every identity and governing every action across applications, gateways, workloads, and AI agents.

Created Mar 2021

abac access-control authorization authz authzen
Total 4,669
30 days +48
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
aarondl

The boss of http auth.

Created Jan 2015

Total 4,205
30 days +7
go-oauth2

OAuth 2.0 server library for the Go programming language.

Created May 2016

go-oauth2 go-oauth2-server oauth2 oauth2-authentication oauth2-provider
Total 3,631
30 days +6
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,608
30 days +29
coreos

A Go OpenID Connect client.

Created Jun 2015

golang
Total 2,507
30 days +11
ory

A SDK for access control policies: authorization for the microservice and IoT age. Inspired by AWS IAM policies. Written for Go.

Created Oct 2015

Total 2,459
30 days +0
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,162
30 days +44
RichardKnop

A standalone, specification-compliant, OAuth2 server written in Golang.

Created Nov 2015

consul docker docker-compose etcd go
Total 2,152
30 days +0
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,127
30 days +16
qvest-digital

JWT login microservice with plugable backends such as OAuth2, Google, Github, htpasswd, osiam, ..

Created Nov 2016

caddy caddyserver github golang htpasswd
Total 1,927
30 days +2
infrahq

Infra provides authentication and access management to servers and Kubernetes clusters.

Created Jan 2021

access go golang iam identity
Total 1,473
30 days +5
aserto-dev

Cloud-native authorization for modern applications and APIs

Created Oct 2022

abac access-control api authorization cloud-native
Total 1,371
30 days +6
go-pkgz

Authenticator via oauth2, direct, email and telegram

Created Dec 2018

authentication custom-oauth2 go golang jwt
Total 1,357
30 days +3
warrant-dev

Warrant is a highly scalable, centralized authorization service based on Google Zanzibar. Use it to define, enforce, query, and audit application authorization and access control.

Created Feb 2023

abac access-control acl authorization authz
Total 1,341
30 days +1
keratin

Authentication service that keeps you in control without forcing you to be an expert in web security.

Created Jun 2017

api-service authentication-backend authn jwt-authentication service
Total 1,285
30 days +1
auth0

A Middleware for Go Programming Language to check for JWTs on HTTP requests

Created Dec 2014

dx-sdk
Total 1,209
30 days +3
crewjam

SAML library for go

Created Nov 2015

Total 1,117
30 days +0
uber

uber's ssh certificate pam module

Created Jan 2017

Total 874
30 days +1
lastlogin-net

Simple and opinionated OpenID Connect server designed for self-hosters

Created May 2023

oidc oidc-server openid
Total 843
30 days +1
gin-contrib

gin-authz is an authorization middleware for Gin

Created May 2017

casbin gin gin-gonic
Total 831
30 days +1
jcmturner

Pure Go Kerberos library for clients and services

Created Dec 2016

go golang gssapi kerberos kerberos-authentication
Total 787
30 days +4
qor
qor / auth

Golang Authentication solution

Created May 2017

Total 778
30 days +1
apache

GORM adapter for Casbin, see extended version of GORM Adapter Ex at: https://github.com/casbin/gorm-adapter-ex

Created Jul 2017

abac access-control acl adapter auth
Total 755
30 days +2
tailscale

A simple OIDC / OAuth Identity Provider (IdP) server for your tailnet.

Created Sep 2025

idp mcp oauth oauth2 oidc
Total 716
30 days +34
go-chi

JWT authentication middleware for Go HTTP services

Created Oct 2015

go http jwt jwt-authentication-middleware jwtauth
Total 651
30 days +0
stretchr

Authentication framework for Go applications.

Created Jul 2013

Total 643
30 days +0
occupysaas

A clean room recreation of Auth0 with 1:1 drop in replacement feature parity.

Created Oct 2026

Total 627
30 days +625
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
abbot

Basic and Digest HTTP Authentication for golang http

Created Mar 2012

Total 557
30 days +0
cli

A library for performing OAuth Device flow and Web application flow in Go client apps.

Created Dec 2020

cli golang oauth2
Total 542
30 days +6
xyproto

🔐 Middleware for keeping track of users, login states and permissions

Created Nov 2014

bcrypt middleware permissions redis sessions
Total 509
30 days +0
hashicorp

A collection of authentication Go packages related to OIDC, JWKs, Distributed Claims, LDAP

Created Nov 2020

golang ldap ldap-authentication oidc oidc-client
Total 485
30 days +1
smhanov

Boring user authentication code for golang

Created Apr 2019

Total 448
30 days +3
sevensolutions

🧩 A traefik Plugin for securing the upstream service with OpenID Connect acting as a relying party.

Created May 2024

oidc oidc-auth oidc-authentication traefik-plugin
Total 444
30 days +14
dgryski

Google Authenticator for Go

Created Feb 2012

Total 424
30 days +0
MicahParks

Create a jwt.Keyfunc for JWT parsing with a JWK Set or given cryptographic keys (like HMAC) in Golang.

Created Mar 2021

go golang jwk jwks jwkset
Total 420
30 days +4
robbiev

Generate 2FA tokens compatible with Google Authenticator

Created Sep 2014

2fa go golang two-factor two-factor-authentication
Total 418
30 days +0
1Password

A set of Go functions for Secure Remote Password protocol implementation in 1Password Teams

Created Nov 2016

Total 390
30 days +0
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 347
30 days +2
apache

Casbin as a Service (CaaS)

Created Aug 2018

abac access-control acl auth authorization
Total 339
30 days +1
storyicon

👮 grbac is a fast, elegant and concise RBAC(role-based access control) framework

Created Jul 2019

access awesome control framework grbac
Total 326
30 days +1
canonical

Authentication service for external identity providers

Created Jun 2023

Total 320
30 days +6
goflyfox

基于gf框架的token插件,通过服务端验证方式实现token认证;

Created Jun 2019

auth gf golang token
Total 316
30 days +1
gomodule

OAuth 1.0 client package for Go

Created Dec 2011

Total 305
30 days +0
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
faroe-archive

A modular backend for email and password authentication

Created Oct 2024

Total 290
30 days +0
AzureAD

The MSAL library for Go is part of the Microsoft identity platform for developers (formerly named Azure AD) v2.0. It enables you to acquire security tokens to call protected APIs. It uses industry standard OAuth2 and OpenID Connect.

Created Nov 2019

Total 290
30 days +1
harranali

Role Based Access Control (RBAC) with database persistence

Created May 2021

Total 287
30 days +0
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
mrjones

OAuth 1.0 implementation in go (golang).

Created Mar 2011

go golang oauth oauth-client oauth-consumer
Total 269
30 days +0
jtblin

Simple ldap client to authenticate, retrieve basic information and groups for a user.

Created Dec 2015

Total 264
30 days +0
guyan0319

基于Golang实现的单点登录系统(go-sso),实现手机号注册、手机号+验证码登录、手机号+密码登录、账号登出等功能,用户认证采用cookie和jwt两种方式。

Created May 2020

Total 262
30 days +0
cedar-policy

Golang implementation of the Cedar Policy Language

Created Feb 2024

authorization cedar
Total 252
30 days +8
casbin

Caddy-authz is a middleware for Caddy that blocks or allows requests based on access control policies.

Created May 2017

caddy middleware plugin filter casbin
Total 250
30 days +0
pjebs

Secure Authentication for REST API endpoints.

Created Nov 2014

Total 244
30 days +0
go-cas

Golang CAS Client package

Created Feb 2015

Total 229
30 days +0
lukaszraczylo

Traefik OIDC plugin middleware

Created Apr 2024

traefik-auth0 traefik-oidc traefik-plugin traefik-plugin-catalog
Total 222
30 days +6
apache

Docker RBAC and ABAC Authorization Plugin Based on Casbin: https://github.com/casbin/casbin

Created Apr 2017

abac access-control auth authorization casbin
Total 220
30 days +0
Permify

Open source RBAC library. Associate users with roles and permissions.

Created Mar 2022

access-control golang golang-library gorm open-source
Total 218
30 days +0
sec51

Golang two factor authentication library

Created Aug 2015

golang totp two-factor-authentication
Total 218
30 days +0
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
amdonov

Lightweight SAML Identity Provider

Created Feb 2015

go identity-provider saml service-provider
Total 213
30 days +0
sa-tokens

✨ 一个轻量级 Go 权限认证框架,让鉴权变得简单、优雅!

Created Oct 2025

Total 205
30 days +5
ory

Web-scale and security-hardened API key server for users, services, machine to machine, and AI agents. Token derivation brings fine-grained capability tokens to avoid common API key pitfalls. Apache2 open source for indie deployments, commercial for scalable and HA.

Created Jun 2026

api-auth api-authentication api-key api-key-management api-token
Total 204
30 days +3
Azure

NTLM/Negotiate authentication over HTTP

Created Oct 2015

Total 204
30 days +1
llaoj

A standalone OAuth2 & SSO server based on go-oauth2

Created Mar 2020

go-oauth2 oauth2 oauth2-server sso
Total 198
30 days +0
1046102779

权限管理服务平台, 利用shiro权限管理设计思想, 支持单用户多角色,比RBAC的资源管理更细粒度化

Created Jan 2017

beego redis rpcx shiro
Total 196
30 days +0
go-macaroon

A native Go implementation of macaroons

Created Oct 2014

Total 194
30 days +0
apache

Google Protocol Buffers adapter for Casbin

Created Jun 2017

access-control adapter authorization casbin protobuf
Total 191
30 days +0
depado

Example cookie-based authentication with Gin

Created Apr 2016

Total 186
30 days +0
opencoff

SRP implementation in pure golang

Created Apr 2015

go golang secure-authentication srp srp-6a
Total 183
30 days +0
sohamkamani

Example application that implements JWT based authentication

Created Jan 2019

Total 178
30 days +0
RiotGames

Temporary Credential Service

Created Jun 2019

aws-lambda golang sts
Total 175
30 days +0
hako

🔑 Secure alternative to JWT. Authenticated Encrypted API Tokens for Go.

Created Jan 2018

api api-token branca crypto cryptography
Total 175
30 days +0
teamhanko

FIDO2-certified passkey server

Created Sep 2023

fido2 go passkeys webauthn
Total 174
30 days +2
korylprince

Simple Active Directory authentication library for Go

Created Feb 2014

Total 174
30 days +0
fernet

Fernet generates and verifies HMAC-based authentication tokens.

Created Jan 2013

Total 172
30 days +0
apache

Etcd watcher for Casbin

Created Oct 2017

access-control authorization casbin etcd watcher
Total 171
30 days +0
imulab

Building blocks for servers implementing Simple Cloud Identity Management v2

Created Apr 2017

cloud go golang identity identity-management
Total 170
30 days +0
luk4z7

middleware-acl Access Control Library RBAC casbin

Created Nov 2017

acl api casbin middeware rest
Total 169
30 days +0
arcanericky

Time-Based One-Time Password Code Generator

Created May 2019

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

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