Google credentials#
ส่วนนี้ประกอบด้วย:
- OAuth2 single service: สร้าง OAuth2 credential สำหรับ node บริการเฉพาะ เช่น node Gmail
- OAuth2 generic: สร้าง OAuth2 credential สำหรับใช้กับ custom operations
- Service Account: สร้าง Service Account credential สำหรับ node บริการเฉพาะบางตัว
- Google PaLM and Gemini: รับ Google Gemini/Google PaLM API key
OAuth2 and Service Account#
มีวิธีการยืนยันตัวตนสองวิธีสำหรับ node บริการของ Google:
- OAuth2: แนะนำเนื่องจากมีการใช้งานที่กว้างขวางกว่าและตั้งค่าได้ง่ายกว่า
- Service Account: อ้างอิงเอกสาร Google documentation: Understanding service accounts สำหรับคำแนะนำเกี่ยวกับเวลาที่คุณต้องการ Service Account
หมายเหตุสำหรับผู้ใช้ n8n Cloud
สำหรับ nodes ต่อไปนี้ คุณสามารถยืนยันตัวตนได้โดยเลือก Sign in with Google ในส่วน OAuth:
Compatible nodes#
เมื่อกำหนดค่าแล้ว คุณสามารถใช้ credentials ของคุณเพื่อยืนยันตัวตน node ต่อไปนี้ Node ส่วนใหญ่เข้ากันได้กับการยืนยันตัวตนแบบ OAuth2 การรองรับการยืนยันตัวตนแบบ Service Account มีจำกัด
Gmail and Service Accounts
ทางเทคนิคแล้ว Google รองรับ Service Accounts สำหรับใช้กับ Gmail แต่ต้องเปิดใช้งาน domain-wide delegation ซึ่ง Google ไม่แนะนำ และพฤติกรรมอาจไม่สอดคล้องกัน
n8n แนะนำให้ใช้ OAuth2 กับ node Gmail