Skip to content

Learn Google OAuth ๐Ÿ” with go API Server

Notifications You must be signed in to change notification settings

giuliobosco/goauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

goauth

Use

Learn how to use Google OAuth API, for authenticate GO application.
For start the application clone the repository and move in the directory:

git clone [email protected]:giuliobosco/goauth.git && cd goauth

Then generate your OAuth token with the Google Developer Console and your token and secret insert in the file creds.json as follow:

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

Then insert you URL in the environment variable of the docker-compose.yml file and deploy the system.

docker-compose up

APIs

  • Welcome API http://example.com/goauth/
  • Get OAuth login URL http://example.com/goauth/login
  • Auth API http://example.com/goauth/v1/oauth

About

Learn Google OAuth ๐Ÿ” with go API Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published