Categories

Authentication and Authorization

Libraries for implementing authentication and authorization.

Repos

311

Stars

278,743

30 days

+3,083

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

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
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
dexidp

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

Created Aug 2015

hacktoberfest identity-provider idp kubernetes oidc
Total 11,278
30 days +87
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,419
30 days +772
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
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
infrahq

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

Created Jan 2021

access go golang iam identity
Total 1,472
30 days +5
lastlogin-net

Simple and opinionated OpenID Connect server designed for self-hosters

Created May 2023

oidc oidc-server openid
Total 843
30 days +1
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
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
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 484
30 days +0
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
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 419
30 days +3
casdoor

Go client SDK for Casdoor

Created May 2021

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

KC SSH PAM is built to streamline the process of user authentication to access Linux systems through SSH with keycloak oidc

Created Apr 2023

golang keycloak linux oidc ssh
Total 109
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
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
XenitAB

OpenID Connect (OIDC) http middleware for Go

Created Aug 2021 Archived

hacktoberfest oidc openid-connect
Total 101
30 days +0
Tecsisa

Authorization server written in Go

Created Aug 2016 Archived

authorization golang oidc proxy rbac
Total 82
30 days +0
salesforce

pam_oidc authenticates users with an OpenID Connect (OIDC) token.

Created Apr 2021 Archived

oidc openid-connect pam pam-module
Total 76
30 days +0

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