diff --git a/CHANGELOG.md b/CHANGELOG.md index bee930b..01d6740 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.2.1] - 2020-04-02 + +### auth0-bitbucket-deploy v3.2.1 +### auth0-github-deploy v3.2.1 +### auth0-gitlab-deploy v3.2.1 +### auth0-visualstudio-deploy v3.2.1 +- #### Changed + - Scopes for hooks updated + + ## [3.2.0] - 2020-03-13 ### auth0-bitbucket-deploy v3.2.0 diff --git a/README.md b/README.md index 6501d94..f4f4b16 100644 --- a/README.md +++ b/README.md @@ -126,7 +126,9 @@ First create a machine-machine `Application` in your tenant all scopes selected "BITBUCKET_PASSWORD": "", "AUTH0_DOMAIN": "YOUR_DOMAIN", "AUTH0_CLIENT_ID": "YOUR_CLIENT_ID", - "AUTH0_CLIENT_SECRET": "YOUR_CLIENT_SECRET" + "AUTH0_CLIENT_SECRET": "YOUR_CLIENT_SECRET", + "AUTH0_SCOPES": "read:client_grants create:client_grants delete:client_grants update:client_grants read:clients update:clients delete:clients create:clients read:client_keys update:client_keys delete:client_keys create:client_keys read:connections update:connections delete:connections create:connections read:resource_servers update:resource_servers delete:resource_servers create:resource_servers read:rules update:rules delete:rules create:rules read:rules_configs update:rules_configs delete:rules_configs read:email_provider update:email_provider delete:email_provider create:email_provider read:tenant_settings update:tenant_settings read:grants delete:grants read:guardian_factors update:guardian_factors read:email_templates create:email_templates update:email_templates read:roles update:roles delete:roles create:roles read:hooks update:hooks delete:hooks create:hooks" +} } ``` @@ -134,9 +136,11 @@ To run the extension locally: ```bash npm install -npm run serve:dev +A0EXT_PROVIDER=github npm run serve:dev ``` +Replace github with `bitbucket`, `gitlab` or `visualstudio`. + After that you need to use something like `ngrok` to expose the extension (Auth0 needs to reach out to the extension for authentication): ```bash diff --git a/package-lock.json b/package-lock.json index 8912292..2deb5b2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "auth0-deploy-extensions", - "version": "3.2.0", + "version": "3.2.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index b07477a..4c13e37 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "auth0-deploy-extensions", - "version": "3.2.0", + "version": "3.2.1", "description": "Auth0 Deployment Extensions", "engines": { "node": "5.9.0" diff --git a/server/index.js b/server/index.js index 727a701..46c4fd6 100644 --- a/server/index.js +++ b/server/index.js @@ -46,52 +46,7 @@ module.exports = (configProvider, storageProvider) => { clientName: `${process.env.A0EXT_PROVIDER} Deploy Extension`, urlPrefix: '/admins', sessionStorageKey: `${process.env.A0EXT_PROVIDER}-deploy:apiToken`, - scopes: [ - 'read:client_grants', - 'create:client_grants', - 'delete:client_grants', - 'update:client_grants', - 'read:roles', - 'update:roles', - 'delete:roles', - 'create:roles', - 'read:clients', - 'update:clients', - 'delete:clients', - 'create:clients', - 'read:client_keys', - 'update:client_keys', - 'delete:client_keys', - 'create:client_keys', - 'read:connections', - 'update:connections', - 'delete:connections', - 'create:connections', - 'read:resource_servers', - 'update:resource_servers', - 'delete:resource_servers', - 'create:resource_servers', - 'read:rules', - 'update:rules', - 'delete:rules', - 'create:rules', - 'read:rules_configs', - 'update:rules_configs', - 'delete:rules_configs', - 'read:email_provider', - 'update:email_provider', - 'delete:email_provider', - 'create:email_provider', - 'read:tenant_settings', - 'update:tenant_settings', - 'read:grants', - 'delete:grants', - 'read:guardian_factors', - 'update:guardian_factors', - 'read:email_templates', - 'create:email_templates', - 'update:email_templates' - ].join(' ') + scopes: config('AUTH0_SCOPES') })); // Configure routes. diff --git a/webtask-templates/bitbucket.json b/webtask-templates/bitbucket.json index 1f83626..a770793 100644 --- a/webtask-templates/bitbucket.json +++ b/webtask-templates/bitbucket.json @@ -1,7 +1,7 @@ { "title": "Bitbucket Deployments", "name": "auth0-bitbucket-deploy", - "version": "3.2.0", + "version": "3.2.1", "preVersion": "2.10.0", "author": "auth0", "description": "This extension gives Auth0 customers the possibility to deploy Hosted Pages, Rules and Custom Database Connections from Bitbucket.", @@ -12,11 +12,7 @@ "initialUrlPath": "/login", "uninstallConfirmMessage": "Do you really want to uninstall this extension? Doing so will stop any Hosted Pages, Rules and Database Connection scripts from being deployed from Bitbucket to Auth0", "repository": "https://github.com/auth0-extensions/auth0-bitbucket-deploy", - "keywords": [ - "auth0", - "extension", - "bitbucket" - ], + "keywords": ["auth0", "extension", "bitbucket"], "auth0": { "createClient": true, "onUninstallPath": "/.extensions/on-uninstall", diff --git a/webtask-templates/github.json b/webtask-templates/github.json index 1425600..a69e13b 100644 --- a/webtask-templates/github.json +++ b/webtask-templates/github.json @@ -1,7 +1,7 @@ { "title": "GitHub Deployments", "name": "auth0-github-deploy", - "version": "3.2.0", + "version": "3.2.1", "preVersion": "2.10.0", "author": "auth0", "description": "This extension gives Auth0 customers the possibility to deploy Pages, Rules and Custom Database Connections from GitHub.", diff --git a/webtask-templates/gitlab.json b/webtask-templates/gitlab.json index f08e456..4346ba1 100644 --- a/webtask-templates/gitlab.json +++ b/webtask-templates/gitlab.json @@ -1,7 +1,7 @@ { "title": "GitLab Deployments", "name": "auth0-gitlab-deploy", - "version": "3.2.0", + "version": "3.2.1", "preVersion": "2.11.0", "author": "auth0", "description": "This extension gives Auth0 customers the possibility to deploy Hosted Pages, Rules and Custom Database Connections from GitLab.", diff --git a/webtask-templates/visualstudio.json b/webtask-templates/visualstudio.json index 5773173..7e3a264 100644 --- a/webtask-templates/visualstudio.json +++ b/webtask-templates/visualstudio.json @@ -1,7 +1,7 @@ { "title": "Visual Studio Team Services Deployments", "name": "auth0-visualstudio-deploy", - "version": "3.2.0", + "version": "3.2.1", "preVersion": "2.9.0", "author": "auth0", "description": "This extension gives Auth0 customers the possibility to deploy Hosted Pages, Rules and Custom Database Connections from Visual Studio Team Services.",