Goth
Go package for writing authentication providers, so Go web applications can sign users in through OAuth and other protocols.
Goth lets a Go web application offer sign-in through outside services. Each service is a provider that implements the package’s Provider and Session interfaces, and the README lists the providers the package ships with.
Sessions default to a cookie store from the gorilla/sessions package. The README shows how to replace that store at startup with one that sets its own secret, path, HTTP-only and secure options.
Worth knowing
The README’s default cookie options list the secure flag as off; its example store turns the flag on for a site served over HTTPS.
Identity
- Status
- Active
- Maintainer
- Mark Bates3
- Maintained by
- Individual
- First release
- 20174
Rendering and deploy
- Install with
- go get2
Releases
Adoption
Sources
- 2026-11-09: links, Written in, License, GitHub stars
api.github.com/repos/markbates/goth - 2026-11-09: Categories, Runtime, Install with
raw.githubusercontent.com/markbates/goth/master/README.md - 2026-11-09: License model, Maintainer
raw.githubusercontent.com/markbates/goth/master/LICENSE.txt - 2026-11-09: First release
api.github.com/repos/markbates/goth/commits/488a04ae13f57b10e55e1a32c8cd62f9cc66c671 - 2026-11-09: Current major version
github.com/markbates/goth/releases/tag/v1.82.0 - 2026-11-09: Last release
api.github.com/repos/markbates/goth/releases/tags/v1.82.0 - 2026-11-09: Contributors
api.github.com/repos/markbates/goth/contributors?per_page=1 - 2026-11-09: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/proxy.golang.org/packages/github.com%2Fmarkbates%2Fgoth