Deploy basic auth plugin

As part of #1209, this change deploys, but does not enable the
new basic-auth plugin service.

Signed-off-by: Alex Ellis <alexellis2@gmail.com>
This commit is contained in:
Alex Ellis
2019-06-05 19:07:05 +01:00
parent 03ebf167c0
commit 6d8ebc65f1
2 changed files with 31 additions and 1 deletions

View File

@ -6,6 +6,7 @@ if ! [ -x "$(command -v docker)" ]; then
fi
export BASIC_AUTH="true"
export AUTH_URL="http://basic-auth-plugin:8080/validate"
sha_cmd="shasum -a 256"
if ! command -v shasum >/dev/null; then
@ -17,6 +18,7 @@ do
case "$1" in
--no-auth | -n)
export BASIC_AUTH="false"
export AUTH_URL=""
;;
--help | -h)
echo "Usage: \n [default]\tdeploy the OpenFaaS core services\n --no-auth [-n]\tdisable basic authentication.\n --help\tdisplays this screen"