Added support for sending clientId and clientSecret as basic auth header