Added support for token based Authentication.