Implementing OAuth 2.0 with Go
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Go OAuth example

Read the blog post here

This is an example node application that implements Githubs OAuth2 API.

In order to run the application:

  1. Register your new application on Github : In the "callback URL" field, enter "http://localhost:8080/oauth/redirect". Once you register, you will get a client ID and client secret.
  2. Replace the values of the clientID and clientSecret variables in the main.go file and also the index.html file
  3. Start the server by executing go run main.go
  4. Navigate to http://localhost:8080 on your browser.