Registry / auth / nerzal-gocloak-v8

nerzal-gocloak-v8

JSON →
library8.6.0gogounverified

GoCloak is a Go client library for interacting with Keycloak, providing authentication and authorization management.

go get github.com/Nerzal/gocloak/v8
INSTALL
IMPORT
SIG · NERZAL-GOCLOAK-V8
N
nerzal-gocloak-v8
authgov8.6.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/v8

Login to Keycloak as admin and retrieve access token

package main import ( "context" "fmt" "github.com/Nerzal/gocloak/v8" ) func main() { client := gocloak.NewClient("https://keycloak.example.com") token, err := client.LoginAdmin(context.Background(), "admin", "password", "master") if err != nil { fmt.Println(err) return } fmt.Println(token.AccessToken) }
Debug
Known issues
breakingVersion 8 introduced breaking changes from v7, including API method signatures.
fix
Refer to migration guide when upgrading from v7.
affects: >=8.0.0
Upgrade
Version history
8.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
Amazon
1
Resources
nerzal-gocloak-v8 — go get nerzal-gocloak-v8 · libregistry