Skip to content

shekodn/oauth_contacts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OAuth Contacts

Git repository for The OAuth Waltz article.

Description

Sample application used to retrieve your google's account contacts using OAuth 2.0

Setup

Google Developer

  1. Create the authorization server here
  2. In the Authorized redirect URIs don't forget to include the application's callback URI: http://localhost:8000/callback

Your machine

  1. Clone this git repository in the respective $GOPATH
  2. Create an .env file with the respective Client ID and Client Secret
GOOGLE_CLIENT_ID=xxx
GOOGLE_CLIENT_SECRET=xxx
PORT=8000
  1. In your terminal just do make run
  2. Go to the client that should be running in http://localhost:8000/contacts
  3. Click on Import Contacts From Google Select your Google account and give permission to the client to get the respective resources
  4. Sit back and wait for the client to retrieve the resource owner's contacts

About

Sample application used to retrieve your google's account contacts using OAuth 2.0

Resources

Stars

Watchers

Forks

Packages

No packages published