Adding authentication to resources