-
Notifications
You must be signed in to change notification settings - Fork 146
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
ListApplications does Not return client_id
for oidc_client's
#299
Comments
Hi @bfrisbie-brex, Thanks for reporting this. Someone from our team will review it soon. cc @monde |
Hi @bfrisbie-brex , I missed seeing this issue. I can see what is going on, it is a side of effect from the general way the golang code is generated for the various list endpoints and golang serialization. In this case, the generated code for list applications is minimal, the response gives a slice of the base application model. But as you point out, there can be specific models in the response, like an oidc application. Both models have credentials, but when an oidc model is returned in the list it is done so as a base application which does not have oidc credentials , just base application credentials. I don't see this getting fixed in the v2.x.x version of the okta-sdk-golang. We are working on a new way to generate all of the SDK clients and that will be released as a v3 version, probably in the next quarter. I'm not certain if the behavior will be corrected then, but I will keep this in mind as, as I said, all of the list endpoints that have specialized models exhibit this behavior. As a work around, once you have the id of the oidc application you are interested in, can you do a subsequent get for that application with the correct model type? Like this test code for GetApplicaton but change that from a basic auth application to an oidc application with |
@monde Thank you for your detailed and thoughtful reply 🙂 I think the workaround you suggested should work for my team's needs, because our services will call |
@monde thanks for the reply, but the workaround does not work for us given we have thousands of applications. The context is we are migrating our API access management stack to Okta (with Enterprise version) and need a feature parity to list all applications and client id is the key for those applications. Is it possible to do a patch / schema update in V2? |
@minwan can you open a support ticket https://support.okta.com/ so it is escalated internally for prioritization? |
thanks opened case 01383954 |
This issue has been marked stale because there has been no activity within the last 14 days. To keep this issue active, remove the |
Additional notes:
When generated to golang code |
Golang code generation needs to have a specific case for |
ping, me |
Describe the bug?
Calling the
ListApplications
function in the Golang SDK returns a list of Applications as expected. However, metadata about these applications are missing from the results.In particular, OIDC clients/application do Not have their client ID's listed in the results. This is in contrast to calling
{{url}}/api/v1/apps?q=oidc_client
via Postman, which does contain the client ID's.Example output from the Golang SDK
ListApplications
call:What is expected to happen?
ListApplications
should include client ID's for OIDC apps.What is the actual behavior?
It does not.
Reproduction Steps?
Call
ListApplications
in an env containing at least one OIDC app.Additional Information?
No response
Golang Version
go version go1.17.6 darwin/amd64
SDK Version
github.com/okta/okta-sdk-golang/v2 v2.10.1
OS version
No response
The text was updated successfully, but these errors were encountered: