TuanAnh207 / auth0-visualstudio-deploy

This extension gives Auth0 customers the possibility to deploy Rules and Custom Database Connections from Visual Studio Team Services.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Auth0 TFS Deployments

This extension makes it possible to deploy Rules and Database Connection scripts from TFS to Auth0.

Running

Local Development

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/...",
  "TFS_BRANCH": "YOUR_BRANCH",
  "TFS_TOKEN": "YOUR_TOKEN",
  "TFS_COLLECTION": "YOUR_COLLECTION",
  "TFS_INSTANCE": "YOUR_INSTANCE",
  "TFS_PROJECT": "YOUR_PROJECT",
  "TFS_TYPE": "git or tfvc",
  "TFS_PATH": "$/project/dev",
  "TFS_USERNAME": "YOUR_TFS_USERNAME",
  "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

Deployment

npm run build

About

This extension gives Auth0 customers the possibility to deploy Rules and Custom Database Connections from Visual Studio Team Services.

License:MIT License


Languages

Language:JavaScript 99.8%Language:CSS 0.2%