Problem getting Unit Test credentials for Single Page Application

We are blocked on implementing unit tests and utilities for our code. This will effect or go or no-go decision on using Auth0. We’ve been through the online documentation, but we are still encountering problems.

We are trying to use the client credentials grant described here https://auth0.com/docs/api-auth/grant/client-credentials to get an authentication token that we will use for unit testing and to run utilities. The instructions are Call Your API Using the Client Credentials Flow. To do this, we need to enable the grant type. as described at https://auth0.com/docs/applications/application-grant-types#how-to-edit-the-application-s-grant_types-property. The Application → Additional Settings → Grant Types → Client Credentials and the Token Endpoint Authentication Method are both greyed-out. Without these, we cannot use the Client Credentials.

We have also tried enabling the password grant type through the dashboard but the API returns an error thata the password grant type is enabled.

Please have someone contact me immediately, as I said this is a potential blocking issue that would prevent us from moving forward with Auth0.

Found this Auth0 Token Endpoint Authentication Method is faded out? - Stack Overflow which explains why the Token Endpoint Authentication Method is greyed-out.

Is there any way then to do the unit tests and run utilities against the application, or do we need to change the application type to Regular Web Applications with Single Sign-On?

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?