# openshift/osin

Golang OAuth2 server library

Repository: https://github.com/openshift/osin
Canonical: https://ross.abutalabs.com/products/osin
Language: Go
License: BSD-3-Clause
License Family: permissive
Last push: 2026-08-17T10:13:43+00:00

## Health v2 (maintenance only)
Score: 76/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 35, longevity 100
- inputs: {"age_days": 4740, "days_push": 16, "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 1933, forks 395 (observed 2026-08-28T04:05:56.342287+00:00)

## What it is
OSIN is a Go library for building your own OAuth2 authentication server, implementing the RFC 6749 specification including authorization and token endpoints and most grant types. It also supports PKCE for more secure code-exchange flows with public clients.

## Use cases
- build an oauth2 authorization server in go
- implement oauth2 token endpoint for my api
- add pkce support to my oauth2 code flow
- issue access tokens for a go web service
- implement client credentials grant in go
- self-host an oauth2 provider

## When to choose
- you need a low-level, embeddable OAuth2 server library in Go that you can wire into your own HTTP handlers and storage backend
- you need RFC 6749 grant types plus PKCE support
- you want to plug in your own storage (Postgres, MySQL, Redis, etc.) via a simple interface

## When to avoid
- you want a turnkey, fully-featured identity provider with user management out of the box (consider Keycloak or Ory Hydra)
- you need an OAuth2 client library rather than a server
- you need active development and modern maintenance - the project sees infrequent updates

## Facets
- artifact type: library
- maturity: maintenance
- function: auth, http-server, security
- domain: security, apis, backend, web-development
- platform: go, cross-platform
- tags: oauth2, oauth2-server, pkce, authentication, authorization-server

## Member repositories
- openshift/osin (main) score 76

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:56.342287+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-30T03:08:34.608466+00:00, confidence not recorded.
  - readme: https://github.com/openshift/osin (fetched 2026-08-28T04:05:56.342287+00:00, sha 34426d13b1fe)
- Data as of 2026-08-30T08:39:29.467469+00:00.
