go-oauth2/oauth2

OAuth 2.0 server library for the Go programming language.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 23 minutes ago
Added to GitGenius on September 19th, 2026
Created on May 26th, 2016
Open Issues & Pull Requests: 113 (+0)
GitHub issues: Enabled
Number of forks: 592
Total Stargazers: 3,621 (+0)
Total Subscribers: 62 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 6.2 days
Mean response time: 338.9 days
90th percentile: 964.8 days
Tracked items: 11

Most active contributors

Sign in to see contributor activity.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 14
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 794 days
Stale 30+ days: 13
Stale 90+ days: 12

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

No label distribution available yet.

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

go-oauth2/oauth2 is an OAuth 2.0 server library for the Go programming language.

The library addresses the need to implement OAuth 2.0 authorization servers in Go applications. It provides a standards-based implementation following RFC 6749, handling the core OAuth 2.0 flows including authorization code and client credentials grant types. The tool manages token generation, validation, and storage, with support for custom access token expiration times, extension fields, and scopes. It can generate access tokens using JWT format when needed.

The library suits projects requiring OAuth 2.0 provider functionality rather than client-side OAuth consumption. It works well for applications that need to issue tokens to third-party clients or manage authorization across web, mobile, and desktop applications. The tool comes with BuntDB as a default token and client store but supports pluggable storage backends, allowing integration with Redis, MongoDB, MySQL, PostgreSQL, DynamoDB, GORM, Firestore, and other databases depending on which community-maintained store implementation a developer chooses.

The project maintains a straightforward codebase with focused development activity. The repository includes working examples demonstrating the authorization code flow and JWT token generation patterns. Documentation is provided through the official Go package reference alongside the README's quick-start guide and protocol flow diagrams.