g1joshi/agent-skills/keycloak
Claude Code and agent skill by g1joshi/agent-skills
- community
Checking that the SKILL.md file is still in the repository.
Expert Keycloak IAM assistance covering OpenID Connect realms, identity brokering, user federation, and client adapters. Use when configuring enterprise SSO, managing Keycloak realms, or securing microservices.
Install
npx vskill@latest install g1joshi/agent-skills/keycloakSKILL.md
Keycloak
Keycloak is an open-source Identity and Access Management solution aimed at modern applications and services. It makes it easy to secure applications and services with little to no code.
When to Use
- Self-Hosted Open-Source Identity Management: Deploying an enterprise IAM solution on Kubernetes without commercial vendor lock-in.
- Enterprise Federation (Active Directory / LDAP): Syncing users, groups, and credentials from corporate LDAP and Active Directory domains.
- Identity Brokering & Social Logins: Centralizing authentication across Google, GitHub, SAML 2.0, and OIDC identity providers.
- Fine-Grained Authorization Services: Defining attribute-based access control (ABAC) and resource permission policies.
Quick Start
Core Concepts
Realm Architecture & Multi-Tenancy
Realms isolate groups of users, credentials, roles, and client applications completely:
OIDC Client Registration (Public vs Confidential)
- Confidential Clients: Backend servers that maintain a
client_secretsecurely. - Public Clients: SPAs and mobile apps that authenticate via PKCE without secrets:
Docker Deployment with Production Database
Running Keycloak in production mode connected to PostgreSQL:
Common Patterns
Client Credentials Flow for Service-to-Service Auth
Problem: Backend microservices calling other microservices require automated machine-to-machine authentication.
Solution: Authenticate using Keycloak Client Credentials grant:
Best Practices
Do:
- Run Keycloak with
start --optimized: Build container images withkc.sh buildahead of time to minimize container boot time in Kubernetes. - Never Use the
masterRealm for Application Users: Create custom dedicated realms for applications; reservemasterstrictly for Keycloak admin. - Enable PKCE on All Public Clients: Enforce S256 code challenge method on all single-page and mobile applications.
- Use Distributed Cache Replication (Infinispan): Configure Infinispan clustering when deploying multi-replica Keycloak pods to synchronize sessions.
Don't:
- Expose Keycloak administration console to the public internet: Protect
/adminendpoints behind private VPNs or IP whitelists. - Use embedded H2 database in production: Always use external, managed PostgreSQL or MySQL with automated backups.
- Neglect database migration planning during upgrades: Major Keycloak version updates require coordinated database schema migrations.
Troubleshooting
| Error | Cause | Solution | |
|---|---|---|---|
Invalid parameter: redirect_uri | Target redirect URI not listed in client's Valid Redirect URIs. | Add exact scheme, host, and port to Keycloak client configuration. | |
KC-SERVICES0093: Invalid credentials | Secret mismatch or user locked out by brute-force protection. | Verify client secret and check user unlock status in Admin Console. | |
Token signature verification failed | Microservice validating token against outdated Keycloak realm keys. | Flush JWKS public key cache in the resource server. |
References
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/security/keycloak/SKILL.md
Popularity
- Repository stars
- 6
- 7-day trend score
- 10
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 20 Mar 2026, 8 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Grok Build (Cursor)
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/g1joshi/agent-skills/keycloak)