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

Commit

Permalink
Update hook scopes in dashboard admins route. (#58)
Browse files Browse the repository at this point in the history
* Update hook scopes in dashboard admins route.

* Read scopes from config instead of hardcoded.

* Update readme with scopes changes.

* Add 3.2.1 to changelog.

* 3.2.1

* Update version of extension templates.
  • Loading branch information
shawnmclean authored Apr 2, 2020
1 parent d353263 commit aa460ad
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 59 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,21 @@ 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"
}
}
```

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
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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.2.0",
"version": "3.2.1",
"description": "Auth0 Deployment Extensions",
"engines": {
"node": "5.9.0"
Expand Down
47 changes: 1 addition & 46 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
8 changes: 2 additions & 6 deletions 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.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.",
Expand All @@ -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",
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.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.",
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.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.",
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.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.",
Expand Down

0 comments on commit aa460ad

Please sign in to comment.