added authConfig to docker build
refactor and fix tests
Merge pull request #3099 from vieux/fix_pull_build

added authConfig to docker build