我使用用户名和密码调用PF和provide服务,但似乎很容易为REST服务调用提供唯一的授权代码,而不是凭据。
此刻我正在用这种方式打电话
root@ubuntu:/home/joe# curl -k -u "**UserName:Password**" -H "X-Xsrf-Header: PingAccess" https://localhost:9000/pa-admin-api/v1/virtualhosts发布于 2016-11-12 05:34:36
PingAccess管理API支持用于身份验证的OAuth访问令牌。它们必须是由PingFederate (使用任何授予类型)发出的访问令牌,并包含管理API访问的配置范围。有关详细信息,请参阅:Authentication.html
PingFederate本身目前不支持管理API的OAuth,但是有许多身份验证选项。目前支持的最安全的身份验证形式是客户端证书身份验证。有关更多详细信息,请参见:https://support.pingidentity.com/s/document-item?bundleId=pingfederate-92&topicId=adminGuide%2FconfiguringAccessToTheAdministrativeApi.html
https://stackoverflow.com/questions/40547068
复制相似问题