Hi, I’m struggling to find a way to generate an access token for E2E testing (I only do API testing with it, I do not interact with the SPA programmatically) for a manually created database user for testing. I read about Password realm, but didn’t manage to get it working, steps I’ve taken:
- Select grant_type Password for my SPA application in my staging tenant
- Verify email manually of database user
- Enable connection in the app - I do not want this because it shows on the universal page, and we do not have database connection, just social
curl --request POST \
--url 'https://.../oauth/token' \
--header 'content-type: application/x-www-form-urlencoded' \
--data grant_type="http://auth0.com/oauth/grant-type/password-realm" \
--data audience="..." \
--data scope="openid offline_access profile email" \
--data client_id="..." \
--data client_secret="..." \
--data realm="..." \
--data username="..." \
--data password="..."
{"error":"invalid_request","error_description":"Connection must be enabled for this client to perform single user creation and signup operations (client_id: ... - connection: ...)"}%
We have social, and passwordless with email connections enabled for the app. What are my options?
Thanks!