It's just a library of third-party authorization tools that make it easy to get rid of the cumbersome third-party login SDKs.
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.
- Github
- Slack
// 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
The project inspiration mainly comes from: