You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

如何通过Keycloak REST API获取自定义认证流程数据?

Keycloak自定义认证步骤API获取方案
  • 你用的那两个接口本来就不会返回自定义步骤的完整JSON结构,得换个接口:

    GET /admin/realms/{realm}/authentication/executions/{executionId}
    

    先通过GET /admin/realms/{realm}/authentication/flows/{flowAlias}/executions拿到流程里所有执行项的列表,里面自定义步骤的id就是这里要填的executionId,调用后就能拿到该自定义步骤的完整结构。

  • 注意检查调用API的账号权限,必须拥有manage-authentication权限,否则Keycloak会过滤掉自定义步骤的相关数据。

  • 如果是要获取自定义认证器本身的定义(而非流程中实例化的步骤),用这个接口:

    GET /admin/realms/{realm}/authentication/authenticators
    

    这个接口会返回所有内置和自定义认证器的元数据信息。

内容的提问来源于stack exchange,提问作者Igonaf

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.29 18:22:02