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 changePassword(email, newPassword, callback) { | |
| var request = require('request'); | |
| // DEBUG ONLY | |
| console.log('@@@ changePassword - start @@@'); | |
| console.log('email: ' + email); | |
| console.log('newPassword: ' + newPassword); | |
| var IDP_ENDPOINT = configuration.ENDPOINT_LOCAL + "/api/v1/changepassword"; |
| function getManagementApiToken() { | |
| const cachedToken = cache.get('managementApi'); | |
| if (cachedToken) { | |
| return Promise.resolve(cachedToken); | |
| } else { | |
| return request.post({ | |
| url: `https://${process.env.AUTH0_DOMAIN}/oauth/token`, | |
| body: { | |
| client_id: process.env.CLIENT_ID, | |
| client_secret: process.env.CLIENT_SECRET, |
| 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]') |
| 52.77.92.156 www.facebook.com | |
| 52.77.92.156 facebook.com | |
| 52.77.92.156 graph.facebook.com | |
| 52.77.92.156 login.facebook.com | |
| 52.77.92.156 www.login.facebook.com | |
| 52.77.92.156 fbcdn.net | |
| 52.77.92.156 www.fbcdn.net | |
| 52.77.92.156 fbcdn.com | |
| 52.77.92.156 www.fbcdn.com |
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 updatebrew tap homebrew/dupesbrew tap homebrew/phpbrew install php70mcrypt: brew install mcrypt php70-mcryptbrew install composervia (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.