Auth0 Home Blog Docs

Auth0.js getConnections




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?



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:!/Connections/get_connections

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.