Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/v2/recovery/password/init API only returns one recovery mode at a given time #21106

Open
sanjulamadurapperuma opened this issue Sep 13, 2024 · 0 comments

Comments

@sanjulamadurapperuma
Copy link
Contributor

sanjulamadurapperuma commented Sep 13, 2024

Describe the issue:

It was observed that the recover via challenge questions option in the password-recovery-with-claims-options.jsp page in the accountrecoveryendpoint is not visible when triggering a password recovery flow with the challenge questions connector added in IS v7.0.0. The recovery flow that they follow is password recovery with multi claims as mentioned in [1].

It was also observed that upon one restart of WSO2 Identity Server the following REST API [2] that is being invoked in the above JSP page to determine if the recovery options are enabled or not returns only one recovery mode. Upon another server restart it returns another recovery mode, but not all recovery modes at the same time.

curl --location 'https://<IS_HOSTNAME>/api/users/v2/recovery/password/init' \
--header 'accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <auth>' \
--data-raw '{
  "claims": [
    {
      "uri": "http://wso2.org/claims/givenname",
      "value": "<givenname>"
    },
    {
      "uri": "http://wso2.org/claims/emailaddress",
      "value": "<email>"
    },
    {
      "uri": "http://wso2.org/claims/lastname",
      "value": "<lastname>"
    }
  ]
}'

This needs to be fixed.

[1] - https://wso2docs.atlassian.net/wiki/spaces/IS570/pages/38176130/Password+Recovery#:~:text=REST%20APIs.-,Password%20recovery%20using%20multiple%20claims,-This%20feature%20allows
[2] - https://is.docs.wso2.com/en/latest/apis/user-account-recovery-v2-rest-api/#tag/Password-Recovery/operation/initiatePasswordRecovery


Optional Fields

Related issues:

Suggested labels:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant