Skip to content

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

@garcger

Description

@garcger

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions