MCPcopy Index your code
hub / github.com/Skarlso/google-oauth-go-sample

github.com/Skarlso/google-oauth-go-sample @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
16 symbols 41 edges 5 files 13 documented · 81%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

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

Core symbols most depended-on inside this repo

LoadUser
called by 2
mongo.go
GetSession
called by 2
mongo.go
RandToken
called by 2
handlers.go
SaveUser
called by 1
mongo.go
NewHandler
called by 1
handlers.go
getLoginURL
called by 1
handlers.go
AuthorizeRequest
called by 1
authorize.go
IndexHandler
called by 0
handlers.go

Shape

Method 8
Function 4
Struct 4

Languages

Go100%

Modules by API surface

handlers.go9 symbols
mongo.go4 symbols
user.go1 symbols
main.go1 symbols
authorize.go1 symbols

For agents

$ claude mcp add google-oauth-go-sample \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact