add oauth authentication to resource