Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Last active June 28, 2016 14:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandrinodimattia/485785e313d9bfc1093e67b8b86a4315 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/485785e313d9bfc1093e67b8b86a4315 to your computer and use it in GitHub Desktop.
Auth0 Source Control Integration with GitHub

Auth0 Source Control Integration with GitHub

The Github Deploy extension allows you to deploy rules and database connections from GitHub to Auth0 (currently only for the public cloud as extensions are not yet supported in the appliance).

  • Repositories: public and private repos (using GitHub Personal Access Tokens)
  • Rules: Supports the actual code + status (enable/disabled), stage and order
  • Database Connections: all scripts

Everything is convention based and a sample repository is available here: https://github.com/auth0-samples/github-source-control-integration

Features:

Configuration Help

The first page will explain how you can create a webhook in your GitHub repository pointing to the extension.

After setting up the Webhook you can start commiting to your repository. For each commit, if changes were made in the rules and database-connection folders the webhook will call the extension to start the deployment.

Note that we always do a full redeploy of all contents to make sure we keep a consistent state.

This means that any rules or db connection scripts that existing in Auth0 but don't existing in your repository will be deleted, because your GitHub repo becomes the single source of truth

You can track all of your deployments in the extension itself:

If a deployment fails you can also look at the details of the deployment and figure out why it failed:

Finally, if you configured a Slack Incoming Webhook you'll be notified on Slack if a deployment succeeded or failed:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment