Added support for custom authentication by providing secred key