This document explains how you can test the new authorization extension in a US account. Keep into account that, once available in the Extension Gallery, all these steps will not be required.
Go to this page and follow the steps to connect to your webtask account: https://manage.auth0.com/#/account/webtasks
Start by creating a new client: https://manage.auth0.com/#/clients
Authorize the client for the Auth0 Management API here: https://manage.auth0.com/#/apis
Finally, grant it the following scopes:
read/create/update/delete
Resource Serversread/create/update/delete
Clientsread
Users
Copy the Client ID and Secret to the next step.
Note: Replace AUTH0_TENANT here with the name of your Auth0 tenant (without the
.auth0.com
suffix).
export AUTH0_TENANT=sandrino-dev
export AUTH0_CLIENT_ID=xxx
export AUTH0_CLIENT_SECRET=xxx
export EXTENSION_SECRET=$(openssl rand -base64 32)
curl https://raw.githubusercontent.com/auth0/auth0-authorization-extension/dev/build/bundle.js > bundle.js
wt create ./bundle.js \
--no-parse --no-merge --name auth0-authz \
--profile $AUTH0_TENANT-default \
--secret WT_URL=https://$AUTH0_TENANT.us.webtask.io/auth0-authz/ \
--secret EXTENSION_SECRET=$EXTENSION_SECRET \
--secret AUTH0_CLIENT_ID=$AUTH0_CLIENT_ID \
--secret AUTH0_CLIENT_SECRET=$AUTH0_CLIENT_SECRET \
--secret AUTH0_DOMAIN=$AUTH0_TENANT.auth0.com \
--secret AUTH0_RTA="auth0.auth0.com"
If you find an issue and we patch the beta version, here's how you can update your extension:
export AUTH0_TENANT=sandrino-dev
curl https://raw.githubusercontent.com/auth0/auth0-authorization-extension/dev/build/bundle.js > bundle.js
wt update auth0-authz ./bundle.js --profile $AUTH0_TENANT-default
Go to https://your-tenant.us.webtask.io/auth0-authz/login?webtask_no_cache=1