OAuth 2.0 server library for the Go programming language.
OAuth 2.0 server library for the Go programming language.
An open protocol to allow secure authorization in a simple and standard method from web, mobile and desktop applications.
…go get -u -v github.com/go-oauth2/oauth2/v4/...server.go…go build server.go
./serverAuthorization Request: http://localhost:9096/authorize?client_id=000000&response_type=code
Grant Token Request: http://localhost:9096/token?grant_type=client_credentials&client_id=000000&client_secret=999999&scope=read
{
"access_token": "J86XVRYSNFCFI233KXDL0Q",
"expires_in": 7200,
"scope": "read",
"token_type": "Bearer"
}A complete example of simulation authorization code model
Simulation examples of authorization code model, please check example
…Copyright (c) 2016 Lyric
No open issues yet, or sync has not completed.