Added authentication for hook script.