gocloak
golang keycloak client
File Explorer
Download Latest Version (.zip)- bug_report.md
- feature_request.md
- codeql-analysis.yml
- go.yml
- .sonar_lock
- report-task.txt
- uast-generator-go-linux-amd64
- settings.json
- openapi.yaml
- ADD_CLIENT_ROLE_TO_USER.md
- USER_FEDERATION.md
- USER_FEDERATION_GROUP_LDAP_MAPPER.md
- USER_FEDERATION_ROLE_LDAP_MAPPER.md
- USER_FEDERATION_USER_ATTRIBUTE_LDAP_MAPPER.md
- jwx.go
- jwx_test.go
- models.go
- config.json
- gocloak-realm.json
- keystore.p12
- .gitignore
- .golangci.yml
- .nancy-ignore
- client.go
- client_benchmark_test.go
- client_test.go
- docker-compose.yml
- Dockerfile
- errors.go
- go.mod
- go.sum
- gocloak-gopher.png
- gocloak_iface.go
- LICENSE
- Makefile
- model_test.go
- models.go
- PULL_REQUEST_TEMPLATE.md
- README.md
- run-tests.sh
- token.go
- utils.go
- utils_test.go
# Installation Guide
1. Get the code
git clone https://github.com/Nerzal/gocloak
Downloads the entire project code from GitHub to your computer.
cd gocloak
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker pull quay.io/keycloak/keycloak
Type this command into your terminal and run it.
docker run -d \
Runs the built image as an actual container.
docker stop gocloak-test
Type this command into your terminal and run it.
docker rm gocloak-test
Type this command into your terminal and run it.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Go
MediumPrerequisites
go build ./...
Compiles the Go program into an executable.
go run .
Runs the Go program directly without a separate build step.
If the build finishes without errors, it worked. If you used go run ., check the terminal output.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
