【发布时间】:2018-11-19 15:34:59
【问题描述】:
作为联合用户,它必须使用 API 密钥或一次性密码进行身份验证。我试图执行以下 curl 请求:-
示例:-
输入:-
curl -s -u 'bx:bx' -k -X POST --header 'Content-Type: application/x-www-form-urlencoded' --header 'Accept: application/json' -d "grant_type=password&response_type=cloud_iam,ims_portal&username=${1}&password=${2}&ims_account=${3}" https://iam.ng.bluemix.net/oidc/token
输出:-
"errorMessage":"You cannot authenticate with user name and password, as you are a federated user","errorDetails":"Your user id '<<><><>>' is federated and must use an API key or one-time passcode to authenticate"
但是我们如何对用户进行身份验证以生成 iam_token 和 iam_user_id?
【问题讨论】:
标签: ibm-cloud ibm-cloud-infrastructure