use ruby http auth api