【问题标题】:Use cURL with Kerberos to auth on Keycloak使用 cURL 和 Kerberos 在 Keycloak 上进行身份验证
【发布时间】:2019-12-28 15:07:30
【问题描述】:

我有以下设置:

  • keycloak 服务器https://auth.example.com
  • 使用 LDAP 提供程序配置的 AD 连接
  • LDAP 提供程序配置中设置的 Kerberos 选项
  • 任何 AD 用户的身份验证都有效
  • 使用 Kerberos 票证进行身份验证在浏览器中有效

据我所知,将 cURL 与 Kerberos 身份验证一起使用,它看起来类似于:

$ curl --negotiate -u : https://app.example.com/index.html

可以使用资源所有者密码凭据授予类型以非交互方式获取访问令牌。但是如何使用 cURL 与 Kerberos 票证 和 Keycloak 获得它?

【问题讨论】:

    标签: authentication curl kerberos keycloak openid-connect


    【解决方案1】:

    官方文档中有一个例子[1]:

    curl \
      -d "client_id=myclient" \
      -d "client_secret=40cc097b-2a57-4c17-b36a-8fdf3fc2d578" \
      -d "username=user" \
      -d "password=password" \
      -d "grant_type=password" \
      "http://localhost:8080/auth/realms/master/protocol/openid-connect/token"
    

    【讨论】:

    • 我知道这一点,我更新了问题。我想使用 kerberos 票而不是 ROPC
    猜你喜欢
    • 2011-04-03
    • 1970-01-01
    • 2021-12-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-01-30
    • 2021-09-25
    • 1970-01-01
    相关资源
    最近更新 更多