All Projects → SagaciousHugo → oauth2

SagaciousHugo / oauth2

Licence: Apache-2.0 license
Interface oriented implementation, no coupling with the model and database, support for GC

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to oauth2

Oauth2
OAuth 2.0 server library for the Go programming language.
Stars: ✭ 2,173 (+18008.33%)
Mutual labels:  oauth2-server, go-oauth2
oauth2
A standalone OAuth2 & SSO server based on go-oauth2
Stars: ✭ 107 (+791.67%)
Mutual labels:  oauth2-server, go-oauth2
Rageframe2
一个基于Yii2高级框架的快速开发应用引擎
Stars: ✭ 1,553 (+12841.67%)
Mutual labels:  oauth2-server
auth-server
Spring-Boot Auth server
Stars: ✭ 37 (+208.33%)
Mutual labels:  oauth2-server
Springcloud Oauth2
本项目基于spring-cloud-starter-oauth2搭建的认证中心和资源服务器的微服务项目,项目不仅仅简单的demo,项目的出发点在于实战应用。本项目为笔者花了不少时间和精力整理出来的,只需要稍微调整就可应用于实际项目当中,并且项目包含大量注释,不仅可以让你会用,也可让你了解到一些流程、一些原理上的东西。认证中心完成密码模式、授权码模式、刷新token模式、简化模式、以及自定义的手机号验证码模式。
Stars: ✭ 154 (+1183.33%)
Mutual labels:  oauth2-server
Hydra
OpenID Certified™ OpenID Connect and OAuth Provider written in Go - cloud native, security-first, open source API security for your infrastructure. SDKs for any language. Compatible with MITREid.
Stars: ✭ 11,884 (+98933.33%)
Mutual labels:  oauth2-server
Egg Oauth2 Server
🌟 OAuth2 server plugin for egg.js based on node-oauth2-server
Stars: ✭ 174 (+1350%)
Mutual labels:  oauth2-server
Flask Oauthlib
YOU SHOULD USE https://github.com/lepture/authlib
Stars: ✭ 1,429 (+11808.33%)
Mutual labels:  oauth2-server
Diber-backend
Delivery Service - Spring Boot / Spring Data Jpa / Hibernate / PostgreSQL / OAuth2 Application
Stars: ✭ 22 (+83.33%)
Mutual labels:  oauth2-server
Light Oauth2
A fast, light and cloud native OAuth 2.0 authorization microservices based on light-4j
Stars: ✭ 247 (+1958.33%)
Mutual labels:  oauth2-server
Doorkeeper Provider App
An example OAuth 2 provider application using the Doorkeeper gem, Rails and Devise
Stars: ✭ 146 (+1116.67%)
Mutual labels:  oauth2-server
Symfony4 Ddd
Bootstrap Application for Symfony 4 with Domain Driven Design
Stars: ✭ 126 (+950%)
Mutual labels:  oauth2-server
Authlib
The ultimate Python library in building OAuth, OpenID Connect clients and servers. JWS,JWE,JWK,JWA,JWT included.
Stars: ✭ 2,854 (+23683.33%)
Mutual labels:  oauth2-server
Node Oauth2 Server Example
Working oauth2 server with minimal configuration
Stars: ✭ 115 (+858.33%)
Mutual labels:  oauth2-server
laravel-passport-demo
Shows you how to turn your website to an Oauth2 server using Laravel Passport
Stars: ✭ 27 (+125%)
Mutual labels:  oauth2-server
Django Oauth2 Server
OAuth2 server written in Python with Django
Stars: ✭ 108 (+800%)
Mutual labels:  oauth2-server
Go Oauth2 Server
A standalone, specification-compliant, OAuth2 server written in Golang.
Stars: ✭ 1,843 (+15258.33%)
Mutual labels:  oauth2-server
Typescript Mern Starter
Build a real fullstack app (backend+website+mobile) in 100% Typescript
Stars: ✭ 154 (+1183.33%)
Mutual labels:  oauth2-server
Taroco-Authentication
Taroco-Authentication 统一认证服务
Stars: ✭ 49 (+308.33%)
Mutual labels:  oauth2-server
authentik
The authentication glue you need.
Stars: ✭ 2,941 (+24408.33%)
Mutual labels:  oauth2-server

Golang Oauth2 Server

Based on the secondary development github.com/go-oauth2, provides TokenStore and TokenGenerator based on interface can be pull out plug type design, can easily customize their need TokenStore and the Generator, and support the TokenGC.

Features

  • clear configuration items with default configuration(config.go)
  • 7 custom hooks are supported to extend logic in the authorization process (server/handler.go)
  • support response in hook functions (such as output authorization page, error page, etc., subsequent authorization logic is automatically interrupted)
  • support for Token GC
  • support custom Token Store with any database (you need to implement the store.tokenstore interface yourself)
  • support custom Token Generator with any algorithm (you need to implement the Generator.Generator interface yourself)
  • based entirely on RFC 6749 implementation (support RedirectURI is empty, support multiple RedirectURI configuration)

Quick Start

Download and install

go get github.com/sagacioushugo/oauth2

Build and run example

go build server.go
./server

go build client.go
./client

Request to client in browser

After receiving the corresponding request, the client will automatically simulate a certain authorization pattern and return the token obtained to the browser

Test the authorization process with RFC 6749 and client logs

Authorization Pattern Client Url note
Authorization Code http://localhost:8080/test/authorization_code
Implicit http://localhost:8080/test/implicit
Password Credentials http://localhost:8080/test/password
Client Credentials http://localhost:8080/test/client_credentials
Refreshing an access token http://localhost:8080/test/refresh_token?refresh_token=yourtoken param refresh_token is required

Documentation

Apache License 2.0

Copyright (c) 2019 Guoyiming

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].