add oauth authentication to registration endpoint