Skip to content

Simplify Third-Party Authorization based on Go language

License

Notifications You must be signed in to change notification settings

LeoInnovateLab/gauth

Repository files navigation

GAuth

It's just a library of third-party authorization tools that make it easy to get rid of the cumbersome third-party login SDKs.

GitHub Go Reference

Table of Contents

Introduction

Providing a tool library for Go programs to enable third-party authorization login. This library encapsulates the cumbersome process of integrating third-party logins into a simple function call, making login easier.More third-party authorization are under development.

Currently Supported

  • Github
  • Google
  • Facebook
  • Slack
  • Linkedin

Getting Started

// create authorization request
authRequest, err := gauth.New().
Source("github").
ClientId("your_client_id").
ClientSecret("your_client_secret").
RedirectUrl("http://localhost:8080/auth/github/callback").
Build()

// generate authorization URL		
authorizeUrl, err := authRequest.Authorize("state")

// After authorization login, it will return login information.
response, err := authRequest.Login(callback)

More documentation will be updated on website

Inspiration

The project inspiration mainly comes from:

About

Simplify Third-Party Authorization based on Go language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages