Skip to content

fix: expirePasswordAndGetTemporaryPassword deserializes response as U… - #504

Open
manmohan-shaw-okta wants to merge 1 commit into
masterfrom
OKTA-1206504
Open

fix: expirePasswordAndGetTemporaryPassword deserializes response as U…#504
manmohan-shaw-okta wants to merge 1 commit into
masterfrom
OKTA-1206504

Conversation

@manmohan-shaw-okta

Copy link
Copy Markdown

…ser instead of TempPassword

The expire_password_with_temp_password endpoint returns {"tempPassword": "..."}, but the generated response processor deserialized it against the User model, silently dropping the tempPassword property and returning it empty.

Fix the response schema/deserialization to use TempPassword, matching the pre-v7.1.1 behavior, and strengthen the existing unit tests to assert the temp password value is actually preserved.

OKTA-1206504

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Adding Tests
  • Build related changes
  • CI related changes
  • Documentation changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Reviewers

…ser instead of TempPassword

The expire_password_with_temp_password endpoint returns {"tempPassword": "..."},
but the generated response processor deserialized it against the User model,
silently dropping the tempPassword property and returning it empty.

Fix the response schema/deserialization to use TempPassword, matching the
pre-v7.1.1 behavior, and strengthen the existing unit tests to assert the
temp password value is actually preserved.

OKTA-1206504
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant