All Projects → Skarlso → google-oauth-go-sample

Skarlso / google-oauth-go-sample

Licence: MIT license
This is a sample repository for doing Google OAuth in Go with a Web App

Programming Languages

go
31211 projects - #10 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to google-oauth-go-sample

Vue-Facebook-Google-oAuth
SignIn or Signup with Facebook and Google using Vue without any external packages
Stars: ✭ 68 (-8.11%)
Mutual labels:  google-oauth
MrHuo.OAuth
.netcore 下最好用的第三方登录组件集合,集成了国内外大部分平台,欢迎使用。
Stars: ✭ 152 (+105.41%)
Mutual labels:  google-oauth

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].