Add authentication for codegen