Skip to content

AuthKitOAuth 2.0 / OIDC, RFC by RFC.

A modular authorization server library for Go. Bring only the grants and extensions you need — no full identity platform required.

AuthKit

At a glance

go
srv := authkit.NewServer()
srv.RegisterGrant(authCodeFlow)
srv.RegisterEndpoint(introspectionFlow)

srv.CreateAuthorizationResponse(r, w, user)  // GET  /authorize
srv.CreateTokenResponse(r, w)                // POST /token
bash
go get github.com/alkeyio/authkit

Requires Go 1.23+. See the Getting Started guide to wire up your first Authorization Code + PKCE + OIDC flow.

Released under the BSD-3-Clause License.