{"repo":"zalando/gin-oauth2","free":true,"listed":false,"github":"https://github.com/zalando/gin-oauth2","clone":"git clone https://github.com/zalando/gin-oauth2.git","description":"Middleware for Gin Framework users who also want to use OAuth2","language":"Go","stars":622,"topics":["gin","gin-middleware","oauth2","authorization","authentication"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Gin-OAuth2 Gin-OAuth2 is specially made for Gin Framework users who also want to use OAuth2. It was created by Go developers who needed Gin middleware for working with OAuth2 and couldn't find any. Project Context and Features When it comes to choosing a Go framework, there's a lot of confusion about what to use. The scene is very fragmented, and detailed comparisons of different frameworks are still somewhat rare. Meantime, how to handle dependencies and structure projects are big topics in the Go community. We've liked using Gin for its speed, accessibility, and usefulness in developing microservice architectures. In creating Gin-OAuth2, we wanted to take fuller advantage of Gin's capabilities and help other devs do likewise. Gin-OAuth2 is expressive, flexible, and very easy to use. It allows you to: - do OAuth2 authorization based on HTTP routing - create router groups to place OAuth2 authorization on top, using HTTP verbs and passing them - more easily decouple services by promoting a \"say what to do, not how to do it\" approach - configure your REST API directly in the code (see the \"Usage\" example below) - write your own authorization functions How OAuth 2 Works If you're just starting out with OAuth2, you might find these resources useful: - OAuth 2 Simplified - An Introduction to OAuth 2 Requirements - Gin - An OAuth2 Token provider (we recommend that you use your own, p.e. use dex) - a Tokeninfo service (p.e. use dex) Gin-OAuth2 uses the following Go packages as depen","default_branch":null,"files":null,"tree":[],"storefront":"/r/zalando","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/zalando/gin-oauth2/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}