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
157 stars 100 forks source link

The `AppLink` object doesn't match the API shape since v9.0.0 #750

Open gao-artur opened 1 day ago

gao-artur commented 1 day ago

Describe the bug?

Before the v9 I used to call ListAppLinks to find all the applications the user is assigned to

var userAppIds = _oktaUserApi.ListAppLinks("user id").Select(appLink => appLink.AppInstanceId);

Starting v9, the AppLink doesn't have the AppInstanceId property anymore. According to API docs it should be there.

Is the model wrong, or does this functionally exist in another API now? How can I list apps with v9?

What is expected to happen?

I should be able to list all the application IDs to which the user is assigned.

What is the actual behavior?

The AppLinks is missing AppInstanceId property.

Reproduction Steps?

var userAppIds = _oktaUserApi.ListAppLinks("user id").Select(appLink => appLink.AppInstanceId);

Additional Information?

No response

.NET Version

8.0.400

SDK Version

9.0.0

OS version

BuildNumber Caption OSArchitecture Version
19045 Microsoft Windows 10 Enterprise 64-bit 10.0.19045
bryanapellanes-okta commented 14 hours ago

@gao-artur Thank you for bringing this to our attention. I've entered an internal issue for tracking and prioritization: OKTA-821867.

We will consult with the internal team that owns this area of the API and request further guidance be provided here. A patch will be provided if this is determined to be an oversight.