Added basic authentication layer for hook script