Last active
August 29, 2015 14:06
-
-
Save woloski/80ec142706fd19d07225 to your computer and use it in GitHub Desktop.
update a connection and its config
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | |
"customScripts": { | |
"login": "function login (email, password, callback) {\n console.log(configuration.test); \n console.log('connecting to the database...');\n console.log('quering...');\n\n //if ( email === xx && bcrypt.compareSync(password, user.password)) { }\n \n var profile = {\n user_id: \"103547991597142817347\",\n nickname: \"johnfoo\",\n email: \"[email protected]\",\n name: \"John Foo\",\n given_name: \"John\",\n family_name: \"Foo\"\n };\n \n callback(null, profile);\n}\n" | |
} | |
}, | |
"status": true | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment