Go Authentication and OAuth

Open-source Go projects categorized as Authentication and OAuth

Top 23 Go Authentication and OAuth Projects

  • authelia

    The Single Sign-On Multi-Factor portal for web apps

    Project mention: I’m able to open a port from outside and open up the IP to connect to my sonic pad. The only thing is when doing this the only thing that opens up is the webcam and not klipper. When inside the network it opens to klipper and then I can go to the webcam from there. Any thoughts? | reddit.com/r/CrealitySonicPad | 2023-01-27

    Alternatively, if you're feeling brave - look at Authelia and a reverse proxy.

  • casbin

    An authorization library that supports access control models like ACL, RBAC, ABAC in Golang

    Project mention: I created Atomic: Self Hosted Open Source Alternative to Reclaim, Clockwise & Motion | reddit.com/r/selfhosted | 2023-01-22
  • InfluxDB

    Build time-series-based applications quickly and at scale.. InfluxDB is the Time Series Platform where developers build real-time applications for analytics, IoT and cloud-native services. Easy to start, it is available in the cloud or on-premises.

  • oauth2

    Go OAuth2

    Project mention: Retrieving authorization JWT from Go CLI program. | reddit.com/r/golang | 2022-03-09

    I mean using the OAuth2 client library that's maintained as part of the Go project.

  • goth

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

    Project mention: Single sign on with LinkedIn | reddit.com/r/golang | 2022-12-04

    You can use oauth2. Just take e.g. a look at the dex documentation dex. Dex is not a library but a standalone federated oidc provider. Highly recommended. For libraries take a look at goth.

  • Ory Keto

    Open Source (Go) implementation of "Zanzibar: Google's Consistent, Global Authorization System". Ships gRPC, REST APIs, newSQL, and an easy and granular permission language. Supports ACL, RBAC, and other access models.

    Project mention: We built an open source authorization service based on Google Zanzibar | reddit.com/r/golang | 2022-11-03
  • authboss

    The boss of http auth.

    Project mention: Designing a Password-less Login System in Go from scratch | dev.to | 2022-08-19

    If you want a more concrete implementation or a module, I would recommend checking out Authboss. It is a complete set of offering for Go devs to integrate secure authentication in their systems.

  • go-oauth2-server

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

  • SonarLint

    Clean code begins in your IDE with SonarLint. Up your coding game and discover issues early. SonarLint is a free plugin that helps you find & fix bugs and security issues from the moment you start writing code. Install from your favorite IDE marketplace today.

  • loginsrv

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

  • gologin

    Go login handlers for authentication providers (OAuth1, OAuth2)

  • gorbac

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

    Project mention: How to handle Permissions/roles with Golang web? | reddit.com/r/golang | 2022-05-22
  • scs

    HTTP Session Management for Go

    Project mention: Standard library, Fiber, Iris, Gin, ... where does one even begin with writing production web apps in Go? | reddit.com/r/golang | 2022-11-14

    I'm a big fan of Alex Edwards' book "Let's Go", and he uses his own Sessions library: https://github.com/alexedwards/scs which you can find in the Authentication section of Awesome Go. So that's a great source as well.

  • auth

    Authenticator via oauth2, direct, email and telegram

    Project mention: Simple web app, how to do auth? | reddit.com/r/golang | 2022-11-02

    the simplest sso library I found is https://github.com/go-pkgz/auth

  • paseto

    Platform-Agnostic Security Tokens implementation in GO (Golang) (by o1egl)

  • permissions2

    :closed_lock_with_key: Middleware for keeping track of users, login states and permissions

  • go-guardian

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

    Project mention: How do you do Authentication? | reddit.com/r/golang | 2022-07-05


  • jeff

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

  • jwt-auth

    This package provides json web token (jwt) middleware for goLang http servers (by adam-hanna)

  • httpauth

    HTTP Authentication middlewares

  • branca

    :key: Secure alternative to JWT. Authenticated Encrypted API Tokens for Go.

    Project mention: Paseto is everything you love about JWT without any of the design deficits | news.ycombinator.com | 2022-10-02
  • webauthn

    Go package for easy WebAuthn integration (by koesie10)

  • yubigo

    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.

  • otpgen

    Library to generate TOTP/HOTP codes

  • sessionup

    Straightforward HTTP session management

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020). The latest post mention was on 2023-01-27.

Go Authentication and OAuth related posts


What are some of the best open-source Authentication and OAuth projects in Go? This list will help you:

Project Stars
1 authelia 15,346
2 casbin 13,633
3 oauth2 4,527
4 goth 4,010
5 Ory Keto 3,833
6 authboss 3,335
7 go-oauth2-server 1,982
8 loginsrv 1,873
9 gologin 1,588
10 gorbac 1,415
11 scs 1,304
12 auth 672
13 paseto 667
14 permissions2 472
15 go-guardian 436
16 jeff 249
17 jwt-auth 224
18 httpauth 216
19 branca 166
20 webauthn 160
21 yubigo 123
22 otpgen 121
23 sessionup 120
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives