okta / okta-sdk-dotnet

A .NET SDK for interacting with the Okta management API, enabling server-side code to manage Okta users, groups, applications, and more.
Other
160 stars 100 forks source link

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

Open klightspeed opened 2 weeks ago

klightspeed commented 2 weeks ago

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

bryanapellanes-okta commented 1 week ago

@klightspeed thanks for bringing this to our attention. I've entered an internal issue for tracking and prioritization: OKTA-829605