Hi,
Steps:
- I created a new tenant, new machine-to-machine application and gave it access to all scopes for this test.
- Generated oauth token using https://test-cli-deploy.auth0.com/oauth/token and above creds for grant_type=client_credentials
- Use the token on Auth0 Management API v2 with following POST body
{
“app_type”: “non_interactive”,
“client_id”: “wRWdgVjevPBt0biegcOP52Th3cc0nTCd”,
“cross_origin_auth”: false,
“custom_login_page_on”: true,
“grant_types”: [
“authorization_code”,
“implicit”,
“refresh_token”,
“client_credentials”
],
“jwt_configuration”: {
“alg”: “RS256”,
“lifetime_in_seconds”: 36000,
“secret_encoded”: false
},
“name”: “machine-to-machine”,
“oidc_conformant”: true,
“sso_disabled”: false
}
The body is from an another tenant that I want to deploy to this new tenant. Attached screenshot that I get