https://theorchard.atlassian.net/browse/PP-506

This POC includes:

> configure a client with least privilege for the dev tenant in auth0

See https://github.com/theorchard/auth0-hosted-pages/pull/804


> generate a 500 entry m2m.json file

See [m2m.json](./m2m.json) and [m2m_10.json](./m2m_10.json)

> use management api via the python sdk to iterate over m2m.json to 
 (a) check if the app exists, 
 (b) if it doesn’t exist, create the app

See [run_m2m_config.py](./run_m2m_config.py)

# To run the app

Update `AUTH0_CLI_MACHINE_CLIENT_ID`, `AUTH0_CLI_MACHINE_CLIENT_SECRET`, `AUTH0_DOMAIN`

```bash
$ cp .env.shadow .env
```

```bash
$ make env
$ source ./env/bin/activate
```

To create 10 test apps.

```bash
$ python run_m2m_config.py m2m_10.json --mode create
```


To delete 10 test apps.

```bash
$ python run_m2m_config.py m2m_10.json --mode delete
```

Replace `m2m_10.json` with `m2m.json` to create 500 clients. Beware: The script sleeps 1 second per app. 



