implement support for Basic Auth in Service class