node-auth0 icon indicating copy to clipboard operation
node-auth0 copied to clipboard

Field 'enabled_clients' is not included in the Connection definition

Open jkillian-psc opened this issue 2 years ago • 6 comments

Checklist

  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

Connection interface is missing enabled_clients field that is included in the response. The Management client API documentation for the operation (https://auth0.com/docs/api/management/v2/connections/get-connections-by-id) also makes no mention of the field either.

image

Reproduction

  1. Initialize the Auth0 Management API client using library
  2. Call the get( ) method on the ConnectionsManager
  3. Print the result returned from the method

Additional context

No response

node-auth0 version

4.0.1

Node.js version

18.16.1

jkillian-psc avatar Sep 27 '23 14:09 jkillian-psc

Thanks for adding an issue, I am looking into this and will report back when I have more info. For the time being, you might want to unblock yourself typewise with some unfortunate casting or manual typing.

frederikprijck avatar Sep 27 '23 15:09 frederikprijck

FWIW, we're also updating our client from an older version to 4.0.1 and we noticed this field is missing from the newer typings as well.

I see it's still in the actual object though, so we'll unblock with some manual typing & sanity checks, but I'm chiming in here to note @jkillian-psc isn't the only one seeing this.

CooperBills avatar Oct 09 '23 23:10 CooperBills

Thanks for that @CooperBills , yeah i have confirmed this with other teams and working on getting this fixed.

frederikprijck avatar Oct 10 '23 04:10 frederikprijck

Hi, We are on 4.3.1 and we used to update the connection. Is there any other way to check the enabled clients? Our code is in production and we want to upgrade to the latest version. Thanks

Gentracker1 avatar Feb 13 '24 01:02 Gentracker1

@frederikprijck Any timeline on getting this fixed? It makes it pretty hard to update a connection's enabled clients if you can't get the ones that are already enabled.

tgillitzer avatar Feb 16 '24 18:02 tgillitzer

The only temp workaround I've found is to do something like connections["enabled_clients"] rather than connections.enabled_clients which throws the type error.

shawnb-gv avatar Feb 22 '24 20:02 shawnb-gv

I have created #1009 to fix this, as I filed a support ticket and they said they were not planning on prioritizing a fix.

icco avatar Jun 06 '24 19:06 icco

@icco We provided the support team with a (very ugly) workaround to unblock you immediately, while we acknowledged the need to have this fixed and the team is looking in fixing this properly so you no longer need such workaround, but because there is a (very ugly) workaround, a few other things have higher priority. But that does not mean this isn't going to be looked at.

Apologies this issue went stale tho, it kinda got lost from our radar, but you did help bring it back to our attention, thank you for that.

frederikprijck avatar Jun 07 '24 07:06 frederikprijck

Fix for this issue is released in https://www.npmjs.com/package/auth0/v/4.6.0

gyaneshgouraw-okta avatar Jun 24 '24 11:06 gyaneshgouraw-okta

this issue is happening for me on 4.6.0

griffinbaker12 avatar May 30 '25 03:05 griffinbaker12