adding support for Bearer Authentication