OAuth-based template with token-based authentication