auth0-exp v1.0.0
auth0-exp
Auth0 configuration dump tool - extension This is an extension of the auth0-dump-config project
Command line tool for dumping your configuration to Auth0. The dump follows the directory structure required by auth0-deploy-cli.
Installation
npm install -g auth0-exp
Setup
You need a configured client on Auth0 and a config file to run the tool.
1. Create a deploy client : see auth0-deploy-cli README.
1. Create the credentials file : refer to the sample file a0deploy_config.json.sample
and fill in the credentials.
You can find them in the settings of the client you created.
Additionaly, you will require the node-auth0 project installed globally and configured as a base for the -p or --proxied_api flag to work via a localized node proxy to the remote Auth0 API's.
Usage
Import configuration via remote API
a0dump -c /path/to/a0deploy_config.json -o /path/to/config/files
Import configuration via a localized node proxy API
a0dump -p -c /path/to/a0deploy_config.json -o /path/to/config/files
Repository Structure
The repository structure is the same as auth0-deploy-cli.
repository =>
clients
client1-name.json
client1-name.meta.json # if specifying client grants
my-other-client-name.json
resource-servers
resource server 1.json
some other resource server.json
database-connections
my-connection-name
get_user.js
login.js
rules
rule1.js
rule1.json
rule2.js
pages
error_page.html
error_page.json
guardian_multifactor.html
guardian_multifactor.json
login.html
login.json
password_reset.html
password_reset.json
7 years ago