Updated oauth template generation.