Skip to content

Instantly share code, notes, and snippets.

@sandrinodimattia
Last active September 20, 2016 22:01
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/54957190b6a2321468ecea284cc0b319 to your computer and use it in GitHub Desktop.
Save sandrinodimattia/54957190b6a2321468ecea284cc0b319 to your computer and use it in GitHub Desktop.
Extensions Development

Finding your extensions

  1. Go to https://manage.auth0.com/#/extensions
  2. Copy the link of an installed extension
  3. Get the ID from the link (8d6f0f0711daedc87d1a6d595771015a)
https://sandbox.it.auth0.com/api/run/sandrino-dev/8d6f0f0711daedc87d1a6d595771015a?webtask_no_cache=1

Update your extension

npm run extension:build && wt update {extension-id} dist/auth0-delegated-admin.extension.0.5.0.js -p sandrino-dev-default

Webtask.json

Conditional Fields

{
  "title": "Optional secrets",
  "name": "auth0-authz",
  "version": "1.4.2",
  "author": "auth0",
  "description": "description.",
  "type": "application",
  "keywords": [
    "auth0",
    "extension"
  ],
  "secrets": {
    "SECRET_1": {
      "description": "secret1"
    },
    "SECRET_2": {
      "description": "secret2",
      "visibleIf": {
        "SECRET_1": "rule"
      }
    },
    "SECRET_3": {
      "description": "This allows you to specify the log level of events that need to be sent",
      "type": "select",
      "allowMultiple": false,
      "options": [
        {
          "value": "2",
          "text": "Warning"
        },
        {
          "value": "1",
          "text": "Info"
        }
      ]
    },
    "SECRET_4": {
      "description": "secret4",
      "required": true,
      "visibleIf": {
        "SECRET_1": "rule",
        "SECRET_3": "1"
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment