Skip to content

IUserApi.GetUserAsync no longer returns Task<User> #755

@klightspeed

Description

@klightspeed

Describe the bug?

In 9.0, IUserApiAsync.GetUserAsync returns Task<UserGetSingleton>, where it previously returned Task<User>. This is incompatible with the return of IOktaCollectionClient<User> from IApiUserAsync.ListUsers, requiring duplication of code to handle the two different types.

This breaking change to GetUserAsync is not mentioned in the migration guide.

What is expected to happen?

IApiUserAsync.ListUsers and IApiUserAsync.GetUserAsync return compatible types

What is the actual behavior?

IApiUserAsync.ListUsers and IApiUserAsync.GetUserAsync return incompatible types

Reproduction Steps?

Update from Okta.Sdk 8.0 to Okta.Sdk 9.0 in a project that relies on GetUserAsync returning Task<Okta.Sdk.Model.User>

Additional Information?

No response

.NET Version

8.0.400

SDK Version

9.0.0

OS version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions