apigee / api-platform-samples

Working samples for the Apigee API Platform
Apache License 2.0
497 stars 713 forks source link

add userconf.sh script to simplify startup code in sample scripts. #77

Closed dfong closed 8 years ago

dfong commented 8 years ago

this pull request adds a script setup/userconf.sh which is intended as a rough replacement for setup/setenv.sh . the current practice of storing credentials in setenv.sh is undesirable for 2 reasons:

userconf.sh addresses these defects by:

additional improvements:

usage: scripts can just source in setup/userconf.sh instead of setup/setenv.sh and/or scripts/set_env.sh . also, after dotting in userconf.sh, call get_password instead of doing a read and calling scripts/verify_credentials.sh .