added authentication support to pull op

Added authentication support to the pull operation, so people can pull from things that require authentication.