auth-server
OAuth 2 Resource/Server protocol implementation in Go
Package goauth/oauth-server
implementes OAuth 2.0 resource/server protocol
Install
To install this package you will run the following
go get -u github.com/goauth/oauth-server
Usage
package main
import (
goauth "goauth/oauth-server"
)
func main() {
oauth := goauth.NewResourceServer()
fmt.Println(oauth)
}
Documentation
What is OAuth?
OAuth stands for Open Authorization(OAuth) and is a protocol where a resource server shares some of the user-owned
resources with a third party client with the authorization from the resource owner.
The resource server/authorization server issues an access token to the client which it can then use to
access the resource-owner's information
goauth/oauth-server acts as both a resource server in case of client credentials
grant type
and acts as a
Grant Types
This package supports the following grant types
- Implicit grant
- Refresh token grant
- Client credentials grant
- Authorization code grat
Contributing
If you wish to contribute to this package, please feel free to create a pull request or start by creating an
issue on github
Resources