パスワードを忘れた場合
ユーザーはOIG Self Service REST APIを使用して、次のURIにより忘れたパスワードをリセットできます。
-
/unauthservice/passwordreset GET: これは、ユーザーのチャレンジ質問を取得します。 -
/unauthservice/passwordreset POST: ユーザーは、新しいパスワードおよびチャレンジ質問に対するレスポンスを指定します。
cURLの例: ユーザーのチャレンジ質問の取得
curl -H "Content-Type: application/json" -X GET https://pseudo.com/iam/governance/selfservice/api/v1/unauthservice/passwordreset?userId=jlong
GETレスポンス本文
{
"challengeQuestions": [
"What is the name of your pet?",
"What is the city of your birth?",
"What is your mother's maiden name?"
]
}
cURLの例: 新しいパスワードとチャレンジ質問に対するレスポンスの指定
curl -H "Content-Type: application/json" -H "X-Requested-By: <anyvalue>" -X POST -d @post.json https://pseudo.com/iam/governance/selfservice/api/v1/unauthservice/passwordreset
POSTリクエスト本文
{
"userId": "jlong",
"newPassword": "NEW_PASSWORD",
"challengeQuestions": [
{
"name": "What is your mother's maiden name?",
"value": "name"
},
{
"name": "What is the name of your pet?",
"value": "pet"
},
{
"name": "What is the city of your birth?",
"value": "birth"
}
]
}
POSTレスポンス本文
{
"status": "true"
}