Top 23 Go Authentication and OAuth Projects
An authorization library that supports access control models like ACL, RBAC, ABAC in GolangProject mention: What do you use for fine grained authorization? (or ABAC) | reddit.com/r/golang | 2021-08-26
For example, I found some very good looking packages for auth: 1. keto which is apparently based on the same system Google docs itself uses. 2. casbin which looks well supported and full featured.
ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at:Project mention: New version of JWT middleware for Fiber (v2.16.0) | reddit.com/r/golang | 2021-08-03
Abandon https://github.com/dgrijalva/jwt-go library due security issues. Now I use https://github.com/golang-jwt/jwt#jwt-go
Scout APM: A developer's best friend. Try free for 14-days. Scout APM uses tracing logic that ties bottlenecks to source code so you know the exact line of code causing performance issues and can get back to building a great product faster.
The Single Sign-On Multi-Factor portal for web appsProject mention: Not a normal dashboard post, because it isn't mine! Learn security people | reddit.com/r/selfhosted | 2021-09-20
Tip you can use a SSO like Authelia or vouch-proxy. Never expose services on internet without authentication.
Go OAuth2Project mention: What do if no progress in MR about year? | reddit.com/r/golang | 2021-09-10
My wife sent MR into golang oauth2 library https://github.com/golang/oauth2/pull/450
Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.
The boss of http auth.
A standalone, specification-compliant, OAuth2 server written in Golang.
Run Linux Software Faster and Safer than Linux with Unikernels.
JWT login microservice with plugable backends such as OAuth2, Google, Github, htpasswd, osiam, ..
Go login handlers for authentication providers (OAuth1, OAuth2)
goRBAC provides a lightweight role-based access control (RBAC) implementation in Golang.
HTTP Session Management for GoProject mention: REST API + limit number of seats | reddit.com/r/golang | 2021-09-02
Unfortunately I haven't written a cookie/session based auth flow in Golang before so can't recommend any libraries. A quick google led me to https://github.com/alexedwards/scs which may or may not be helpful.
Platform-Agnostic Security Tokens implementation in GO (Golang) (by o1egl)Project mention: Am I doing authorization correctly? I'm doing http-only cookie-based auth and to get the current user I call an API route that reads the cookie and returns the info | reddit.com/r/golang | 2021-08-15
Check out paseto tokens
:closed_lock_with_key: Middleware for keeping track of users, login states and permissions
Go-Guardian is a golang library that provides a simple, clean, and idiomatic way to create powerful modern API and web authentication.Project mention: After 2 years of Django, I'm starting using Go for building web servers. Do you guys have any suggestions? | reddit.com/r/golang | 2021-05-24
https://github.com/labstack/echo This is going to be my next project I look at. Alternatively you can incorporate the security bits manually by importing something like: https://github.com/shaj13/go-guardian
🍍Jeff provides the simplest way to manage web sessions in Go.
HTTP Authentication middlewares
This package provides json web token (jwt) middleware for goLang http servers (by adam-hanna)
Authenticator via oauth2 (by go-pkgz)
:key: Secure alternative to JWT. Authenticated Encrypted API Tokens for Go.Project mention: SAML is insecure by design | reddit.com/r/programming | 2021-08-06
Better alternatives would be PASETO or Branca.
Go package for easy WebAuthn integration (by koesie10)
Yubigo is a Yubikey client API library that provides an easy way to integrate the Yubico Yubikey into your existing Go-based user authentication infrastructure.
Straightforward HTTP session management
Library to generate TOTP/HOTP codesProject mention: Show HN: Otpgen – Library to generate TOTP/HOTP codes written in Go | news.ycombinator.com | 2021-08-15
What are some of the best open-source Authentication and OAuth projects in Go? This list will help you:
Are you hiring? Post a new remote job listing for free.