-
Notifications
You must be signed in to change notification settings - Fork 1
Webtask Git Deployment
This document will explain you how to run the application in a webtask.io server using the code in this repo, if you want to build, or modify, the application visit this [page](Webtask Deployment)
Webtask.io is platform that allows developers to run code in a secure isolated environment.
All Auth0 tenants have access to a Webtask container that they can use to deploy their extensions and it also can be used to run other applications. In the following steps we will use that container to deploy the Self-Service E-mail Update application.
if you don't want to use your Auth0 webtask tenant you can also create a container of your own. Follow the instructions here and skip this section
-
Access the Account > Webtasks section of your Auth0 tenant.
-
Follow the first two steps of the page. Be careful with the token since it enables any user to create Webtasks in your container.
Before creating the command make sure you have all the information collected while [preparing the tenant](Prepare your Auth0 tenant)
-
Execute the following command replacing the values of the secrets and the name of the webtask if you want to.
wt create --name *eu* --no-merge --no-parse --prod --secret AUTH0_DOMAIN=**Application Domain** --secret AUTH0_MANAGEMENT_TOKEN=**JWT Token** --secret AUTH0_CLIENT_ID=**Application Client ID** --secret AUTH0_CLIENT_SECRET=**Application Client Secret** --secret AUTH0_CONNECTION=**Application Connection Name** https://raw.githubusercontent.com/CriGoT/auth0-update-email/master/build/bundle.wt.js -
Once the command completes it will display the url that you can use to access the application. Copy it removing the ````?webtask_no_cache=1```
Webtask created You can access your webtask at the following url: https://webtask.it.auth0.com/api/run/.../eu?webtask_no_cache=1
To succesfully run the application there is on additional step. You must register the webtask URL as a callback for the application
-
Login to the Auth0 Management Portal
-
Navigate to the Applications section and open the application settings
-
In the field Allowed Callback URLs enter the address displayed after creating the webtask.
-
Scroll down and click Save Changes
You can now verify the application is working by browsing the webtask url.