wt create webtask.js --auth0When browsing the webtask URL, the user will get a page with Lock. Once logged in, the result of the webtask will be shown.
| ┌──────────────────┐ ┌──────────────────┐ | |
| │ │ webtask token │ │ | |
| │ Website │◀──(w/id_token)────▶│ Auth0 │ | |
| │ │ │ │ | |
| └──────────────────┘ └──────────────────┘ | |
| ▲ |
| eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGF0IjoiYmFja2VuZCAmIGZyb250ZW5kIGVuZ2luZWVycyIsIndoZXJlIjoiYW55d2hlcmUuIEFyZ2VudGluYSBvciBTZWF0dGxlIHByZWZlcnJlZCIsImhvdyI6ImVtYWlsIHRvIGpvYnNAYXV0aDAuY29tIiwiaW5jbHVkZSI6eyJ3aG8iOiJPbmUgcGFyYWdyYXBoIGV4cGxhaW5pbmcgd2hvIHlvdSBhcmUiLCJsaW5rcyI6WyJHaXRIdWIiLCJUd2l0dGVyIiwiTGlua2VkSW4iXSwiY29kZSI6IkEgcGllY2Ugb2YgYGNvZGVgIHRoYXQgeW91IGxpa2UgKG5vdCBuZWNlc3NhcmlseSB5b3VycykifSwiYWJvdXRfYXV0aDAiOlsiYXV0aDAuY29tL2pvYnMiLCJhdXRoMC5jb20vb3NzIiwiYXV0aDAuY29tL2Fib3V0IiwiZ2l0aHViLmNvbS9hdXRoMCJdfQ._PHycTzoLHmjn6ejZKg7kgvfPzNSINI04q8prqxojJg |
Labor specialization helped spur the Industrial Revolution and the technology-driven world in which we live. I firmly believe that startups are the equivalent of this century, providing the the building blocks for today's apps:
What do we do the first time we want to use a library? We read the Github README or the Wiki. Why? First and foremost, because we can do what we know best: Copy & Paste code snippets. Also, it gives us an overview of how we can use the library and the APIs it has. If the APIs weren’t good, we’d just search for another one.
Products should follow this same idea. We should have documentation from which we can copy and paste. For a product, that means tailored documentation for every user.
Another thing we love is reading code. It’s literature for us!That’s why it’s nice if every document includes an up-to-date sample for every major platform/technology that we can just download, run locally and read its code.
Install deps
go get github.com/gorilla/mux
go get github.com/astaxie/beego/session
Run
| PUT https://YOUR-ACCOUNT.auth0.com/api/connections/YOUR-CONNECTION-NAME | |
| content-type: application/json | |
| authorization: Bearer ACCESS-TOKEN | |
| { | |
| "options": { | |
| "bareConfiguration": { | |
| "test": "foo3" | |
| }, | |
| "enabledDatabaseCustomization":true, |