Auth0 Home Blog Docs

Problem getting Unit Test credentials for Single Page Application

testing
unit-testing
python

#1

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 https://auth0.com/docs/api-auth/tutorials/client-credentials. 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.


#2

Found this https://stackoverflow.com/questions/49542281/auth0-token-endpoint-authentication-method-is-faded-out 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 https://auth0.com/docs/architecture-scenarios/web-app-sso?