Just playground for oauth2 in go using https://github.com/RangelReale/osin
INSERT INTO client (id, secret, redirect_uri, extra) VALUES (1111, 'aabbccdd', 'http://localhost:14001/appauth', '');
$ go install github.com/mikamikuh/oauth2go/client
$ client
$ go install github.com/mikamikuh/oauth2go/server
$ server
- Access http://localhost:14001 (client)
- Click "Log in" button on the page
- Show authentication page on localhost:14000 (server)
- Click "Allow" -> redirect to localhost:14001/appauth with token
- Click "Deny" -> redirect to localhost:14001/appauth with error msg param