Go to the API v2 explorer and generate a token with update:tenant_settings
. Then call the tenants endpoint with the new HTML:
PATCH https://{YOUR_DOMAIN}/api/v2/tenants/settings
{
"change_password": {
"enabled": true,
function login(email, password, callback) { | |
var ldap = require('ldapjs'); | |
if (!global.ldapClient) { | |
// console.log('Global Client not found'); | |
var client = ldap.createClient({ | |
url: 'ldap://server:389', | |
idleTimeout: 30000 | |
}); | |
client.bind('uid=admin,ou=system', 'secret', function(err) { |
import _ from 'lodash'; | |
import fetch from 'node-fetch'; | |
import delay from 'delay'; | |
export async function pingServers(servers) { | |
let failedServers = {}; | |
for (const url of servers) { | |
let failures = 0; | |
for (const i of _.range(3)) { | |
const response = await fetch(url); |
'use latest'; | |
import express from 'express'; | |
import { fromExpress } from 'webtask-tools'; | |
import bodyParser from 'body-parser'; | |
const app = express(); | |
var jwt = require('express-jwt'); | |
var jwtCheck = jwt({ |
function (user, context, callback) { | |
// this rule requires the following configuration values: | |
// CAPTCHA_SECRET: a 32 bytes string that will be the shared secret between | |
// the rule and the webtask | |
// AUTH0_DOMAIN: your auth0 domain (e.g. account.auth0.com) | |
// CAPTCHA_REDIRECT: the URL for the webtask that will show and process CAPTCHA | |
// Put a specific client ID if you dont want CAPTCHA for every client | |
// if (context.clientID !== '[your client id]') |
Not for everyone. Each programmer has their own appreciation of what is good coding music.
(From most influential to least)
This gist contains a script for cloning all the extensions in the current directory. I recommend following the current steps, however you are free to clone these anywhere.
cd ~/Source
mkdir auth0-extensions && cd "$_"
curl https://gist.githubusercontent.com/sgmeyer/f622dd49e661c4b62e447530af2762b8/raw/c39122d57cf3ae41b6fd17019432b48edb8415e0/checkout-all-repos.sh" > checkout-all-repos.sh
# VI bindings in iex: | |
brew install rlwrap # on OSX | |
echo "alias iex='rlwrap -a foo iex'" >> ~/.bash_profile | |
echo "set editing-mode vi" >> ~/.inputrc | |
source ~/.bash_profile | |
# To run iex WITHOUT rlwrap | |
\iex |
First install Brew on your MAC
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew tap homebrew/dupes
brew tap homebrew/php
brew install php70
mcrypt
: brew install mcrypt php70-mcrypt
brew install composer
via (https://www.linux.com/learn/tutorials/442438-vim-tips-folding-fun)
zf#j
creates a fold from the cursor down # lines.zf/string
creates a fold from the cursor to string .zj
moves the cursor to the next fold.zk
moves the cursor to the previous fold.zo
opens a fold at the cursor.zO
opens all folds at the cursor.zm
increases the foldlevel by one.zM
closes all open folds.