This extension makes it possible to deploy Rules and Database Connection scripts from GitLab to Auth0.
First create a Client
in your account with read:connections
and read/create/update/delete:rules
access to the Auth0 Management API. Then create a config.json
file under ./server/
containing the following settings:
{
"EXTENSION_SECRET": "any-random-value-will-do",
"SLACK_INCOMING_WEBHOOK_URL": "https://hooks.slack.com/services/...",
"GITLAB_BRANCH": "YOUR_BRANCH",
"GITLAB_TOKEN": "YOUR_TOKEN",
"GITLAB_REPOSITORY": "YOUR_REPO",
"AUTH0_DOMAIN": "YOUR_DOMAIN",
"AUTH0_CLIENT_ID": "YOUR_CLIENT_SECRET",
"AUTH0_CLIENT_SECRET": "YOUR_CLIENT_ID"
}
To run the extension locally:
npm install
npm run serve:dev
After that you need to use something like ngrok
to expose the extension (Auth0 needs to reach out to the extension for authentication):
./ngrok http 3000
Finally you can login to the extension using your Auth0 dashboard account:
https://YOU.ngrok.io/login
npm run build