Categories

Authentication and Authorization

Libraries for implementing authentication and authorization.

Repos

311

Stars

278,743

30 days

+3,083

golang

Go OAuth2

Created Apr 2014

go golang oauth2 oauth2-client
Total 5,913
30 days +10
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,927
30 days +18
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

More

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
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,630
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
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
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,126
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,926
30 days +1
go-pkgz

Authenticator via oauth2, direct, email and telegram

Created Dec 2018

authentication custom-oauth2 go golang jwt
Total 1,356
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
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
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
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
llaoj

A standalone OAuth2 & SSO server based on go-oauth2

Created Mar 2020

go-oauth2 oauth2 oauth2-server sso
Total 198
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
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
TykTechnologies

Tyk Authentication Proxy for third-party login

Created Dec 2015

api-gateway identity-broker ldap oauth2 openid-connect
Total 110
30 days +0
zhaow-de

PAM module connecting to Keycloak for user authentication using OpenID Connect/OAuth2, with MFA/2FA/TOTP support

Created Feb 2021

keycloak oauth2 oidc openid-connect pam-module
Total 108
30 days +1
Darkness4

Experiment with Go + HTMX and OAuth2/OIDC + WebAuthn

Created Jul 2023

go htmx oauth2 oidc sql
Total 107
30 days +0
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
Skarlso

This is a sample repository for doing Google OAuth in Go with a Web App

Created Nov 2016

golang google-oauth hacktoberfest oauth2
Total 102
30 days +0
libregraph

LibreGraph Connect implements an OpenID provider (OP) with integrated web login and consent forms.

Created Jun 2021

ldap-authentication oauth2 openid-connect openid-provider
Total 97
30 days +1
Shareed2k

Package goth_fiber provides a simple, clean, and idiomatic way to write authentication packages for fiber framework applications.

Created Apr 2020

fiber-framework goth oauth oauth2
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
grokify

Utility libraries for Go (aka Golang) API auth including OAuth 2, JWT, TLS Client Authentication and Basic Auth.

Created Jun 2017

golang oauth2 utilities
Total 74
30 days +1
josuebrunel

Simple and easy to use authentication library for Golang

Created Dec 2025

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

Go package of OAuth 2.0 authorization for command line tools, which allows simple authorization flow for better UX

Created Oct 2018

cli golang oauth2
Total 65
30 days +0
liut

An OAuth2 server that provides managed services for enterprise employees

Created Jul 2015

cas employee-management exmail feishu go-ldap
Total 56
30 days +0
nilorg

authentication authorized server(认证授权服务器)OAuth2 + Casbin + Swagger + Gin

Created Aug 2019

casbin go-oauth2-server naas oauth2 openid-connect
Total 52
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
Luzifer

SSO authentication provider for the auth_request nginx module

Created Jan 2018 Archived

atlassian-crowd duo golang google-authenticator ldap
Total 304
30 days +0
shimt

Allows Linux user authentication to OAuth2 via pam_exec

Created Mar 2017 Archived

go linux oauth2 pam
Total 85
30 days +0
nmrshll

Simplifying the oauth2 auth flow for desktop / cli apps that have no server side.

Created Jun 2017 Archived

cli desktop golang golang-library oauth2
Total 81
30 days +0

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