我有以下设置:
据我所知,将 cURL 与 Kerberos 身份验证一起使用,它看起来类似于:
$ curl --negotiate -u : https://app.example.com/index.html
可以使用资源所有者密码凭据授予类型以非交互方式获取访问 token 。但是我如何使用 cURL 获得它带有 Kerberos 票证 和 key 斗篷?
最佳答案
官方文档中有一个例子[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"
关于authentication - 使用带有 Kerberos 的 cURL 在 Keycloak 上进行身份验证,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57623773/