A Sample Integration of Google and GitHub OAuth2 in Golang (GoFiber) utilising MongoDB
MIT License
This is sample OAuth integration written in GoLang that also uses MongoDB. This is a sample TODO Application where people can Create and update Tasks.
The application makes use of both Google Authentication and GitHub Authentication
The documentation can be found here:
This Application makes use of Clean Architecture
This architecture enables us to add more authentication methods in future and also we can shift to a different database completely as the API makes use of services and the database implementation is written in the repository.
GOOGLE_OAUTH_CLIENT_ID=
GOOGLE_OAUTH_CLIENT_SECRET=
GITHUB_OAUTH_CLIENT_ID=
GITHUB_OAUTH_CLIENT_SECRET=
JWT_SECRET=
MONGO_URI=
Follow the documentation given here
You can run docker-compose up
this will spin up the mongoose database also for you.
Copyright 2021 Hemanth Krishna
Licensed under MIT License : https://opensource.org/licenses/MIT