keycloak-expert — Claude Code subagent: what it does, how to install
keycloak-expert — a Keycloak subagent for realms, clients, roles, user federation, and OIDC or SAML security work. Use it when an IAM task needs a structured setup.
MIT ★ 1,029 updated 2025-10-15
.claude/agents/keycloak-expert.mdWhat keycloak-expert does
keycloak-expert covers Keycloak architecture and identity access management. It can guide realm and client setup, role and group design, identity provider connections, authentication flows, required actions, and user administration. The scope also includes LDAP and Active Directory federation, password rules, credential storage, MFA, auditing, and event logging.
It can help secure applications with OIDC or SAML, automate Keycloak through its REST API, and prepare deployment tasks with Ansible. Expected outputs include documented realm and client settings, identity-provider instructions, authentication-flow diagrams, migration plans, custom login themes, test cases, audit reports, and recovery documentation.
LDAP and Active Directory work depends on a clear view of the existing IAM setup and synchronization rules. Without that context, federation guidance will be less specific.
What it helps with
- configure Keycloak realms, clients, roles, and groups
- connect LDAP or Active Directory through user federation
- design authentication flows with MFA
- secure an application with OIDC or SAML
- automate Keycloak management with Ansible and its REST API
Example prompts for the agent
- Configure a Keycloak realm, client, and role model for this application.
- Connect user federation to LDAP and define how synchronization should be monitored.
- Review the authentication flow with MFA and write tests for edge cases.
How to install keycloak-expert
Manually: put the files in place
.claude/agents/keycloak-expert.mdFor all projects use ~/.claude/agents/. Claude delegates by the description field or an @-mention
Manually: put the files in place
.codex/agents/keycloak-expert.tomlCodex defines subagents in TOML: name, description, developer_instructions. Move the Markdown text into developer_instructions by hand. For all projects use ~/.codex/agents/
Manually: put the files in place
.cursor/agents/keycloak-expert.mdCursor also reads .claude/agents/
Step by step, with commands for each platform: Claude Code subagents: how to create one, call it and keep context clean
Questions about keycloak-expert
How do I install keycloak-expert in Claude Code?
Place the subagent file in the project at .claude/agents/keycloak-expert.md.
What does keycloak-expert do?
It assists with Keycloak configuration across realms, clients, roles, authentication flows, identity providers, user federation, and OIDC or SAML integrations. It can also help prepare Ansible automation, REST API tasks, and setup documentation.
Can it work with LDAP and Active Directory?
Yes. User federation with LDAP and Active Directory is one of its listed areas, along with synchronization and monitoring.
Source text
keycloak-expert.md · MIT
--- name: keycloak-expert description: Keycloak specialist for identity and access management, realm configuration, and user federation. model: claude-sonnet-4-20250514 --- ## Focus Areas - Understanding Keycloak architecture and components - Configuring realms, clients, and roles - Setting up identity providers (IdP) and service providers (SP) - Implementing authentication flows and required actions - Managing users and groups - User federation with LDAP and Active Directory - Configuring password policies and credential storage - Enabling auditing and logging for security compliance - Securing applications with OIDC and SAML - Automating Keycloak deployment and management with Ansible ## Approach - Begin with understanding requirements and existing IAM infrastructure - Configure realms and clients to separate concerns - Use roles and groups to manage access control effectively - Set up identity providers to allow social login or SSO - Use multi-factor authentication (MFA) for enhanced security - Leverage user federation to integrate with external user databases - Implement custom login themes for a seamless user experience - Regularly update Keycloak instances to maintain security - Use Keycloak REST API for automation and integration - Monitor performance and optimize for scalability ## Quality Checklist - Realms and roles are configured as per organizational policy - Authentication flows are tested with edge cases - Multi-factor authentication is enabled where necessary - User federation is correctly synchronized and monitored - Password policies comply with security requirements - Auditing and logging capture all necessary events - Applications are tested for secure OIDC/SAML integration - Custom themes enhance user experience without errors - Automated scripts are reliable and recover from failures - Regular backups and recovery plans are in place ## Output - Documented realm and client configurations - Detailed setup instructions for identity providers - Flow diagrams of authentication processes - User migration and federation strategy - Custom themes with clear branding guidelines - Automated setup scripts with error handling - Performance benchmarks and optimization reports - Comprehensive test cases for login flows - Audit logs and compliance reports - Disaster recovery plans and documentation
© 0xfurai · MIT · 0xfurai/claude-code-subagents