This is a sample repository for doing Google OAuth in Go with a Web App
Go CSS
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
database Removed all the clutter. Nov 4, 2016
handlers Removed all the clutter. Nov 4, 2016
middleware First structure. Nov 4, 2016
static First structure. Nov 4, 2016
structs Removed all the clutter. Nov 4, 2016
templates First structure. Nov 4, 2016
.gitignore Added ignore Nov 5, 2016
README.md First structure. Nov 4, 2016
quest.go First structure. Nov 4, 2016

README.md

# Google OAuth Go Sample Project - Web application

Web based version of GoProgressQuest.

Installation

Simply go get github.com/Skarlso/google-oauth-go-sample.

Setup

Google

In order for the Google Authentication to work, you'll need developer credentials which the this application gathers from a file in the root directory called creds.json. The structure of this file should be like this:

{
  "cid":"hash.apps.googleusercontent.com",
  "csecret":"somesecrethash"
}

To obtain these credentials, please navigate to this site and follow the procedure to setup a new project: Google Developer Console.

Dependencies

To gather all the libraries this project uses, simply execute from the root: go get -v ./...

Running

To run it, simply build & run and navigate to http://127.0.0.1:9090/login, nothing else should be required.

go build
./google-oauth-go-sample