Popularity
0.8
Declining
Activity
0.0
Stable
3
4
0
Description
This is a ported project from OAuth2 Provider that had been written in Node.js with some additional features.
Programming language: Go
License: GNU General Public License v3.0 or later
Latest version: v0.2.4
go-oauth2 alternatives and similar packages
Based on the "Authentication & OAuth" category.
Alternatively, view go-oauth2 alternatives based on common mentions on social networks and blogs.
-
aws-doc-sdk-examples
Welcome to the AWS Code Examples Repository. This repo contains code examples used in the AWS documentation, AWS SDK Developer Guides, and more. For more information, see the Readme.md file below. -
casbin
An authorization library that supports access control models like ACL, RBAC, ABAC in Golang: https://discord.gg/S5UjpzGZjN -
jwt-go
ARCHIVE - Golang implementation of JSON Web Tokens (JWT). This project is now maintained at: -
goth
Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications. -
go-oauth2-server
A standalone, specification-compliant, OAuth2 server written in Golang. -
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. -
github.com/lestrrat-go/jwx/v2
Implementation of various JWx (Javascript Object Signing and Encryption/JOSE) technologies -
permissions2
:closed_lock_with_key: Middleware for keeping track of users, login states and permissions -
jwt-auth
This package provides json web token (jwt) middleware for goLang http servers -
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. -
sessions
A dead simple, highly performant, highly customizable sessions middleware for go http servers. -
Facecontrol
Simple authentication, single sign-on and (optinal) authorization solution.
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of go-oauth2 or a related project?
README
go-oauth2
OAuth2 Provider library written in Go
This is a ported project from OAuth2 Provider that had been written in Node.js with some additional features.
- Pure implementation in GoLang.
- Current implementation only supports password_flow & refresh_token_flow.
- Use JWT.
- Default buildin with MongoDB.
- Allow to customize the server.
Example Server
package main
import (
"fmt"
"github.com/phuc0302/go-oauth2"
"github.com/phuc0302/go-oauth2/oauth_key"
"github.com/phuc0302/go-oauth2/oauth_role"
"github.com/phuc0302/go-server"
"github.com/phuc0302/go-server/util"
)
func main() {
// Initialize server with sandbox mode enable and using MongoDB.
oauth2.InitializeWithMongoDB(true, true)
// Define handler
f := func(c *server.RequestContext) {
if s, ok := c.GetExtra(oauthKey.Context).(oauth2.OAuthContext); ok {
c.OutputText(util.Status200(), fmt.Sprintf("Hello, your ID is: %s", s.User.UserID()))
} else {
panic(util.Status401())
}
}
// Bind handler with HTTP GET
oauth2.BindGet("/protected", oauthRole.All(), f)
// Start server
oauth2.Run()
}
Author
Phuc, Tran Huu [email protected]