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

Unable to access Links (_links) in version 7 for an IdentityProvider when using GetIdentityProviderAsync/CreateIdentityProviderAsync #700

Closed
anirvanroy1986 opened this issue Mar 14, 2024 · 1 comment · Fixed by #708
Labels

Comments

@anirvanroy1986
Copy link

Describe the bug?

I am trying to retrieve the metadata and ACS information of an IdentityProvider. From the documentation, it is supposed to appear in _links property and I also do see it in postman response in the following format:

"_links": { "metadata": { "href": "<url>/metadata.xml", "type": "application/xml", "hints": { "allow": [ "GET" ] } }, "acs": { "href": "<url>", "type": "application/xml", "hints": { "allow": [ "POST" ] } }, "users": { "href": "<url>/users", "hints": { "allow": [ "GET" ] } }, "deactivate": { "href": "<url>/lifecycle/deactivate", "hints": { "allow": [ "POST" ] } }

The readme(https://github.com/okta/okta-sdk-dotnet/tree/legacy-5.x-series#get-data-from-_links) talks about version 5 using the GetProperty Resource, but this class has been removed in version 7 and the Links property is returned as Null in the SDK response. Can you please provide a workaround as this is a critical functionality that I am trying to access from the API and I don't see any way.

What is expected to happen?

A way to access Links property for an IdentityProvider object.

What is the actual behavior?

Links is null in the SDK response

Reproduction Steps?

  1. Use .Net SDK version 7.
  2. Call IIdentityProviderApi.GetIdentityProviderAsync(idpId), where idpId is the ID of the Identity provider
  3. Check the IdentityProvider object returned in the response.

Additional Information?

No response

.NET Version

8.0.201

SDK Version

7.0.5

OS version

Darwin MacBook-Pro 22.6.0 Darwin Kernel Version 22.6.0: Tue Nov 7 21:40:08 PST 2023; root:xnu-8796.141.3.702.9~2/RELEASE_ARM64_T6000 arm64

@laura-rodriguez
Copy link
Collaborator

Thank you for letting us know! I filed an internal ticket so the team prioritizes it accordingly.

Internal Ref: OKTA-709947

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

Successfully merging a pull request may close this issue.

2 participants