Auth0.js getConnections

HI,

I;m busy upgrading to auth0.js v9.
I noticed there isn’t a method “getConnections”.
We previously used the values returned from this in order to establish (from email address) whether the company had enterprise sso enabled.

How can I get this information now?

Thanks
Rob

Hi @robertbcurtis ,

Today, you can use the Get all connections endpoint from Management API v2, reduce the response to an array of connections where the enabled_clients array contains your client_id.

Here is the endpoint doc: Auth0 Management API v2

So you will need to create your own API endpoint that effectively does a client_credentials call to acquire and access token, perform an API call that reduces the response to an array as described above, and return the results.

Hope that helps.