Description
Goth is a Go package for adding authentication to web applications with many identity providers. It provides a clean and idiomatic way to write authentication packages, and it works with OAuth, OAuth2 and any other protocol, as long as the provider implements the Provider and Session interfaces. The package was inspired by OmniAuth, the Ruby authentication library. The README lists a long set of supported providers, including Amazon, Apple, Auth0, Azure AD, Discord, Dropbox, Facebook, GitHub, GitLab, Google, LinkedIn, Microsoft, Okta, Slack, Spotify, Stripe, Twitch and Twitter, and it supports generic OpenID Connect with auto discovery. An examples folder shows a working application where users sign in through several providers, and environment variables supply the credentials.…
Highlights
- Sign-in with many identity providers
- OAuth, OAuth2 and OpenID Connect
- Write your own provider with interfaces
- Example application included
- Open source Go package
Ratings & Reviews
No ratings yet
Be the first to rate Goth.
People also visit
Goth FAQ
What is Goth?
It is a Go package for adding sign-in with many identity providers to web applications.
Which providers are supported?
The README lists providers such as Google, GitHub, Facebook, Apple, Discord, Slack, LinkedIn and Microsoft, along with generic OpenID Connect.
Can I add my own provider?
Yes. Any provider that implements the Provider and Session interfaces can be used, including other OAuth or OAuth2 services.
How are sessions stored?
By default in a cookie store from gorilla/sessions, which you can replace at startup to set cookie options.
What are the best Goth alternatives?
Popular alternatives to Goth include OAuth2 Proxy, Vouch Proxy and Pocket ID. See all Goth alternatives




