Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
klightspeed opened this issue Nov 7, 2024 · 2 comments
Open

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

klightspeed opened this issue Nov 7, 2024 · 2 comments
Labels

Comments

@klightspeed
Copy link

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

@klightspeed klightspeed added the bug label Nov 7, 2024
@bryanapellanes-okta
Copy link
Contributor

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

@pdubb29
Copy link

pdubb29 commented Dec 12, 2024

Do you have a timeline on this fix? We have a need to upgrade to v9 of this library in order to get the UserFactors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants