Skip to content

Instantly share code, notes, and snippets.

Avatar

Matias Woloski woloski

View GitHub Profile
@woloski
woloski / server.js
Created Feb 4, 2014
jwt and social auth
View server.js
app.get('/auth/facebook/callback',
passport.authenticate('facebook', { failureRedirect: '/error', session: false }),
function(req, res) {
var token = jwt.sign(req.user, secret, { expiresInMinutes: 60*5 });
res.redirect('/#jwt=' + jwt);
});
@woloski
woloski / always-looking-for-talent.md
Last active Aug 29, 2015
We don't hire on-demand, we continously look for great people
View always-looking-for-talent.md

Auth0 is a privately-held tech company based in Seattle, WA. We have a distributed team working remotely from Seattle, Buenos Aires and Cordoba.

We're building the company we always wanted, with people who share the same passion for technology, solutions and customers.

We continously look for:

View gist:9793195
### Keybase proof
I hereby claim:
* I am woloski on github.
* I am woloski (https://keybase.io/woloski) on keybase.
* I have a public key whose fingerprint is 0224 1D50 4856 D763 441F 190D F00A 7305 01D0 FA5F
To claim this, I am signing this object:
@woloski
woloski / 0_reuse_code.js
Created Apr 13, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@woloski
woloski / updateconn
Last active Aug 29, 2015
update a connection and its config
View updateconn
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,
@woloski
woloski / README.md
Last active Aug 29, 2015
Go + Auth0
View README.md

Install deps

go get github.com/gorilla/mux
go get github.com/astaxie/beego/session

Run

@woloski
woloski / option1-prose.md
Last active Aug 29, 2015
Which style would you prefer for a blog post?
View option1-prose.md

Why developers fall in love with your product?

1. Awesome docs

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.

View option1.md

DRY

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:

  • Sendgrid spent years thinking about e-mail delivery.
  • Stripe has been processing payments for 4 years.
  • Twilio has cracked all the details of guarranted SMS delivery across the world.
  • Auth0 has experts on the subject that went through every detail of authentication, authorization and user management.
  • ... and so on
View token.txt
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ3aGF0IjoiYmFja2VuZCAmIGZyb250ZW5kIGVuZ2luZWVycyIsIndoZXJlIjoiYW55d2hlcmUuIEFyZ2VudGluYSBvciBTZWF0dGxlIHByZWZlcnJlZCIsImhvdyI6ImVtYWlsIHRvIGpvYnNAYXV0aDAuY29tIiwiaW5jbHVkZSI6eyJ3aG8iOiJPbmUgcGFyYWdyYXBoIGV4cGxhaW5pbmcgd2hvIHlvdSBhcmUiLCJsaW5rcyI6WyJHaXRIdWIiLCJUd2l0dGVyIiwiTGlua2VkSW4iXSwiY29kZSI6IkEgcGllY2Ugb2YgYGNvZGVgIHRoYXQgeW91IGxpa2UgKG5vdCBuZWNlc3NhcmlseSB5b3VycykifSwiYWJvdXRfYXV0aDAiOlsiYXV0aDAuY29tL2pvYnMiLCJhdXRoMC5jb20vb3NzIiwiYXV0aDAuY29tL2Fib3V0IiwiZ2l0aHViLmNvbS9hdXRoMCJdfQ._PHycTzoLHmjn6ejZKg7kgvfPzNSINI04q8prqxojJg
View gist:7a62cf181932fc4f3fbb
┌──────────────────┐ ┌──────────────────┐
│ │ webtask token │ │
│ Website │◀──(w/id_token)────▶│ Auth0 │
│ │ │ │
└──────────────────┘ └──────────────────┘