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
- Welcome API
http://example.com/goauth/
- Get OAuth login URL
http://example.com/goauth/login
- Auth API
http://example.com/goauth/v1/oauth