dghubble/gologin
Go login handlers for authentication providers (OAuth1, OAuth2) observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 98
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4089
- days_rel: n/a
- days_push: 14
- n_releases_24m: 0
Adoption not part of the score
1959 stars · 147 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
gologin is a Go library providing chainable http.Handler implementations for login flows with OAuth1 and OAuth2 providers like Google, GitHub, Twitter, and Facebook. It supports web login flows via LoginHandler/CallbackHandler and mobile token flows via TokenHandler, passing authenticated users or tokens through the request context.
Use cases
- add google sign-in to a go web app
- implement github oauth login in go
- handle twitter oauth1 login flow
- support facebook login on a website
- add oauth2 login with csrf state protection
- handle native mobile app token logins in go
- chain custom success and failure handlers after social login
When to choose
- you need social/OAuth login in a Go web server with composable http.Handler middleware
- you want support for both OAuth1 and OAuth2 providers in one library
- you need configurable CSRF state handling for OAuth2 flows
- you want lightweight handlers that integrate with net/http rather than a full auth framework
When to avoid
- you need full user management with sessions, passwords, and registration (use an auth framework like authboss or Ory)
- your app is not written in Go
- you need OpenID Connect-specific features beyond plain OAuth2
- you want a hosted or turnkey authentication service
Facets
library · maturity stable
auth http-server middleware web-development backend security apis go oauth1 oauth2 social-login http-handlers authentication-providers web-server
1 source
- readme: https://github.com/dghubble/gologin · fetched 2026-08-28 · 9d17c56c38cb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| dghubble/gologin | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="dghubble/gologin")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem