Skip to content
This repository has been archived by the owner on Feb 28, 2021. It is now read-only.

Commit

Permalink
Re-add scopes. (#96)
Browse files Browse the repository at this point in the history
* Re-add scopes.

* Bump packages.

* Add hooks scopes.
  • Loading branch information
shawnmclean authored Dec 9, 2020
1 parent edb72a7 commit 002b3cf
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "auth0-deploy-extensions",
"version": "3.7.0",
"version": "3.7.1",
"description": "Auth0 Deployment Extensions",
"engines": {
"node": "5.9.0"
Expand Down
51 changes: 50 additions & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,56 @@ module.exports = (configProvider, storageProvider) => {
clientName: `${process.env.A0EXT_PROVIDER} Deploy Extension`,
urlPrefix: '/admins',
sessionStorageKey: `${process.env.A0EXT_PROVIDER}-deploy:apiToken`,
scopes: config('AUTH0_SCOPES')
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',
'read:hooks',
'update:hooks',
'delete:hooks',
'create:hooks'
].join(' ')
}));

// Configure routes.
Expand Down
2 changes: 1 addition & 1 deletion webtask-templates/bitbucket.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Bitbucket Deployments",
"name": "auth0-bitbucket-deploy",
"version": "3.7.0",
"version": "3.7.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.",
Expand Down
2 changes: 1 addition & 1 deletion webtask-templates/github.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "GitHub Deployments",
"name": "auth0-github-deploy",
"version": "3.7.0",
"version": "3.7.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.",
Expand Down
2 changes: 1 addition & 1 deletion webtask-templates/gitlab.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "GitLab Deployments",
"name": "auth0-gitlab-deploy",
"version": "3.7.0",
"version": "3.7.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.",
Expand Down
2 changes: 1 addition & 1 deletion webtask-templates/visualstudio.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"title": "Visual Studio Team Services Deployments",
"name": "auth0-visualstudio-deploy",
"version": "3.7.0",
"version": "3.7.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.",
Expand Down

0 comments on commit 002b3cf

Please sign in to comment.