# golang/oauth2

Go OAuth2

Repository: https://github.com/golang/oauth2
Canonical: https://ross.abutalabs.com/products/oauth2
Homepage: https://golang.org/x/oauth2
Language: Go
License: BSD-3-Clause
License Family: permissive
Topics: go, golang, oauth2, oauth2-client
Last push: 2026-08-25T21:41:50+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 35, longevity 100
- inputs: {"age_days": 4524, "days_push": 8, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5896, forks 1056 (observed 2026-08-28T04:09:32.034507+00:00)

## What it is
The official Go client implementation of the OAuth 2.0 specification, maintained by the Go team. It provides token acquisition, refresh, and provider endpoint definitions for integrating OAuth2 authentication into Go applications.

## Use cases
- add oauth2 login to a go web app
- authenticate with google apis from go
- refresh oauth2 access tokens in go
- implement oauth2 client credentials flow
- get an access token for a go http client
- integrate third-party oauth providers in golang

## When to choose
- you are writing Go and need standards-compliant OAuth 2.0 client behavior
- you want an official, well-maintained library from the Go team
- you need token refresh and endpoint definitions for common providers

## When to avoid
- you need an OAuth 2.0 authorization server, not a client
- you need OpenID Connect flows beyond plain OAuth2
- you are not working in Go

## Facets
- artifact type: library
- maturity: stable
- function: auth, http-client
- domain: security, web-development, apis, developer-tools
- platform: go, cross-platform
- tags: oauth2, oauth2-client, golang, authentication

## Member repositories
- golang/oauth2 (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:32.034507+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:51:31.934617+00:00, confidence not recorded.
  - readme: https://github.com/golang/oauth2 (fetched 2026-08-28T04:09:32.034507+00:00, sha 51a7a8fb4fb9)
  - homepage: https://golang.org/x/oauth2 (fetched 2026-08-29T08:46:48.395602+00:00, sha f40b2ff82d55)
- Data as of 2026-08-30T08:39:29.467469+00:00.
