add connect lib -> middle -> basicAuth