okta-sdk-java icon indicating copy to clipboard operation
okta-sdk-java copied to clipboard

UserCredApi.expirePasswordWithTempPassword(…) needs to return TempPassword instead of User

Open garcger opened this issue 8 months ago • 1 comments

Describe the bug?

https://developer.okta.com/okta-sdk-java/apidocs/com/okta/sdk/resource/api/UserCredApi.html#expirePasswordWithTempPassword(java.lang.String,java.lang.Boolean,java.util.Map) incorrectly tries to return a User object instead of TempPassword object.

Please see https://developer.okta.com/docs/api/openapi/okta-management/management/tag/UserCred/#tag/UserCred/operation/expirePasswordWithTempPassword

What is expected to happen?

A TempPassword object is returned, e.g.:

{ "tempPassword": "F46gy7X4" }

What is the actual behavior?

An essentially empty User object is returned.

Reproduction Steps?

User user = new UserCredApi(apiClient).expirePasswordWithTempPassword(“userId”);

Additional Information?

No response

Java Version

openjdk version “21.0.3” 2024-04-16 LTS OpenJdk Runtime Environment Temurin-21.0.3+9 (build 21.0.3+9-LTS) OpenJdk 64-Bit Server VM Temurin 21.0.3+9 (build 21.0.3+9-LTS, mixed mode)

SDK Version

22.0.0

OS version

No response

garcger avatar Apr 18 '25 01:04 garcger

Is there any update on when this bug will be resolved in the okta SDK?

anantharam avatar Jun 10 '25 09:06 anantharam