switches to oauth authentication