Registry / auth / nerzal-gocloak-v7

nerzal-gocloak-v7

JSON →
library7.11.0gogounverified

A Go client library for interacting with Keycloak's admin and authentication APIs.

go get github.com/Nerzal/gocloak/v7
INSTALL
IMPORT
SIG · NERZAL-GOCLOAK-V7
N
nerzal-gocloak-v7
authgov7.11.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

gocloak
github.com/Nerzal/gocloak/v7

Logs in to Keycloak as admin

package main import ( "context" "fmt" "github.com/Nerzal/gocloak/v7" ) func main() { client := gocloak.NewClient("http://keycloak.example.com") token, _ := client.LoginAdmin(context.Background(), "admin", "admin", "master") fmt.Println(token.AccessToken) }
Debug
Known issues
breakingVersion 7 uses a different API than v6; ensure compatibility.
fix
Use the correct import path with /v7 suffix and refer to v7 documentation.
affects: >=7.0.0
Upgrade
Version history
7.11.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
17 hits · last 30 days
node
16
Amazon
1
Resources
nerzal-gocloak-v7 — go get nerzal-gocloak-v7 · libregistry