Skip to content

Instantly share code, notes, and snippets.

@eugeniop
eugeniop / fr-wt-compiler.js
Last active May 1, 2017 23:53
Flowroute WT Compiler
'use strict';
module.exports = (options, cb) => {
options.nodejsCompiler(options.script, (e, Func) => {
if (e) return cb(e);
let instance = new Func();
instance.secrets = options.secrets;
instance.meta = options.meta;
return cb(null, (ctx, req, res) => {
@eugeniop
eugeniop / scim-wt.js
Created January 25, 2016 14:51
A proof of concept for SCIM -> Auth0 proxy.
var Express = require('express');
var Webtask = require('webtask-tools');
var request= require('request');
var app = Express();
app.get('/Users/:id', function (req, res) {
//These 2 params are created with the Webtask as "secrets". AUTH0_DOMAIN is if the form: https://{your account}.auth0.com
//the API V2 Token can be obtained in the API Explorer: https://auth0.com/docs/api/v2
var request = require('request');
var qs = require('qs');
var jwt = require('jsonwebtoken');
return function (context, req, res) {
require('async').series([
/*
* We only care about POST and GET
*/
var request = require('request');
var qs = require('qs');
var jwt = require('jsonwebtoken');
return function (context, req, res) {
require('async').series([
/*
* We only care about POST and GET
*/
#ifndef STM_ENGINE
#define STM_ENGINE
namespace Infrastructure
{
enum EventActionResult { EventFailed, EventProcessed };
template<class T>
class State
{
@eugeniop
eugeniop / jwt.js
Last active August 29, 2015 14:09
JWT in rules
function (user, context, callback) {
var CLIENT_SECRET = 'TARGET_API_CLIENT_SECRET'; // Target API Client secret
var CLIENT_ID = 'TARGET_API_CLIENT_ID';
var jwt_user = {
user_id: user.id,
email: user.email,
name: user.name
};
function login (email, password, callback) {
//1. Auth user.
var profile = {
user_id: "103547991597142817347",
nickname: "johnfoo",
email: email,
name: "John Foo",
given_name: "John",

Customer Success at Auth0

What we do

Our goal is to make life easier for our customers. At Auth0 we strive for high quality in everything we do: our software, our service, our docs, our interactions. Authentication and Authorization are hard problems and we want to leave our customers with a feeling of relief that a big burden has been lifted for them. Authentication is often a tiny, but very critical aspect of any app. Trust is essential as we are quite literally __holding the keys__� that enables access to an app.

The Customer Success Team does everything needed to make a customer well... successful with our product. We:

  • Answer questions from exploring and existing customers.
  • Write proof of concept/demos of our technologies.
@eugeniop
eugeniop / configure.sh
Created September 2, 2014 03:49
configure.sh
#!/bin/bash
set -e
wget -qO - https://gist.github.com/jfromaniello/1672b30342ee0eff5ee6/raw/update.sh > /root/update.sh
chmod +x /root/update.sh
wget -qO - https://gist.github.com/jfromaniello/1672b30342ee0eff5ee6/raw/update_config.sh > /root/update_config.sh
chmod +x /root/update_config.sh
@eugeniop
eugeniop / app.js
Created September 1, 2014 22:23
Generate SAS Token for Azure Service Bus & send to Queue
var crypto = require('crypto');
var util = require('util');
var request = require('request');
var sbNamespace = '{YOUR NAMESPACE}';
var sbEntityPath = '{YOUR QUEUE}';
var sharedAccessKey = 'LBgdFoE........lFyvW4=';
var sharedAccessKeyName = '{POLICY NAME}';
var sas = getSASToken(sbNamespace, sbEntityPath, sharedAccessKeyName, sharedAccessKey);