# markbates/goth

Package goth provides a simple, clean, and idiomatic way to write authentication packages for Go web applications.

Repository: https://github.com/markbates/goth
Canonical: https://ross.abutalabs.com/products/goth
Homepage: https://blog.gobuffalo.io/goth-needs-a-new-maintainer-626cd47ca37b
Language: Go
License: MIT
License Family: permissive
Last push: 2026-02-11T05:06:29+00:00

## Health v2 (maintenance only)
Score: 57/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 67, release rhythm 19, longevity 100
- inputs: {"age_days": 4341, "days_push": 203, "days_rel": 380, "gap_med": 136, "n_releases_24m": 2}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 6597, forks 630 (observed 2026-08-28T04:09:45.580156+00:00)

## What it is
Goth is a Go library providing a simple, idiomatic way to add multi-provider authentication to web applications via OAuth, OAuth2, and OpenID Connect. It supports 60+ identity providers (Google, GitHub, Facebook, etc.) through a common Provider and Session interface, inspired by Ruby's OmniAuth.

## Use cases
- add social login to a Go web app
- authenticate users with Google or GitHub OAuth in Go
- support multiple OAuth providers with one library
- implement OpenID Connect authentication in Go
- build sign-in-with-X flows for a Go backend
- unify OAuth2 provider sessions in a Go application

## When to choose
- you need OAuth/OAuth2/OpenID Connect login in a Go web application
- you want to support many identity providers through a single consistent interface
- you want an OmniAuth-like experience in Go

## When to avoid
- you need full-featured user management, registration, or MFA rather than just authentication
- you need a non-Go solution or a hosted identity platform's native SDK
- you only need simple username/password auth with no third-party providers

## Facets
- artifact type: library
- maturity: active
- function: auth, middleware, http-server
- domain: web-development, backend, security, developer-tools
- platform: go, cross-platform
- tags: oauth, oauth2, multi-provider-auth, openid-connect, social-login, omniauth-inspired, session-management, web-server

## Member repositories
- markbates/goth (main) score 57

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:45.580156+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:43:32.953080+00:00, confidence not recorded.
  - readme: https://github.com/markbates/goth (fetched 2026-08-28T04:09:45.580156+00:00, sha 63d1f9a399ca)
- Data as of 2026-08-30T08:39:29.467469+00:00.
