# Nerzal/gocloak

golang keycloak client

Repository: https://github.com/Nerzal/gocloak
Canonical: https://ross.abutalabs.com/products/gocloak
Language: Go
License: Apache-2.0
License Family: permissive
Topics: keycloak-client, golang, go, keycloak-adapter, auth, authentication
Last push: 2026-07-28T11:30:07+00:00

## Health v2 (maintenance only)
Score: 96/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 94, release rhythm 95, longevity 100
- inputs: {"age_days": 2849, "days_push": 36, "days_rel": 36, "gap_med": 0.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1251, forks 316 (observed 2026-08-28T04:04:08.258052+00:00)

## What it is
gocloak is a Go client library for the Keycloak Admin and authentication APIs. It lets Go applications log in users and admins, manage users and realms, and introspect or validate access tokens.

## Use cases
- integrate keycloak authentication in a go application
- create and manage keycloak users programmatically
- introspect and validate jwt access tokens
- manage keycloak realms and clients via admin api
- implement sso login with openid connect in go

## When to choose
- your Go service uses Keycloak as its identity provider
- you need to automate Keycloak user or realm administration
- you want token validation and introspection without hand-writing API calls

## When to avoid
- you use an identity provider other than Keycloak
- you need a full OIDC client with discovery and flows beyond Keycloak's API
- your project is not written in Go

## Facets
- artifact type: library
- maturity: active
- function: auth, http-client, sdk
- domain: security, apis, developer-tools, backend
- platform: go, windows
- tags: keycloak, oauth2, openid-connect, identity-management, token-introspection, sso, linux, macos

## Member repositories
- Nerzal/gocloak (main) score 96

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.258052+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-30T05:07:37.230730+00:00, confidence not recorded.
  - readme: https://github.com/Nerzal/gocloak (fetched 2026-08-28T04:04:08.258052+00:00, sha 128437645be0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
