update basic auth layer