Git repository for The OAuth Waltz article.
Sample application used to retrieve your google's account contacts using OAuth 2.0
- Create the authorization server here
- In the Authorized redirect URIs don't forget to include the application's callback URI: http://localhost:8000/callback
- Clone this git repository in the respective $GOPATH
- Create an
.envfile with the respective Client ID and Client Secret
GOOGLE_CLIENT_ID=xxx
GOOGLE_CLIENT_SECRET=xxx
PORT=8000
- In your terminal just do
make run - Go to the client that should be running in http://localhost:8000/contacts
- Click on Import Contacts From Google Select your Google account and give permission to the client to get the respective resources
- Sit back and wait for the client to retrieve the resource owner's contacts