Skip to main content

Amazon Cognito

คืออะไร

Amazon Cognito เป็นบริการ authentication, authorization และ user management สำหรับ web และ mobile applications ประกอบด้วย User Pools สำหรับจัดการ user directory และ Identity Pools สำหรับให้ temporary AWS credentials รองรับ social login (Google, Facebook, Apple) และ SAML/OIDC federation สำหรับ enterprise SSO

ราคา

  • User Pools: ฟรี 50,000 MAU แรก
  • 50,001 - 100,000 MAU: $0.0055/MAU
  • 100,001 - 1,000,000 MAU: $0.0046/MAU
  • SAML/OIDC federation: $0.015/MAU (50 MAU แรกฟรี)
  • SMS MFA: คิดตามค่า SNS SMS

เหมาะสำหรับ

  • Authentication สำหรับ web และ mobile apps
  • Social login integration
  • Enterprise SSO กับ Active Directory หรือ SAML providers
  • Secure access ไปยัง AWS resources สำหรับ end users

Use Case ตัวอย่าง

แอป e-learning รองรับการล็อกอินผ่าน Google, Facebook และ email/password ด้วย Cognito User Pool ทีมพัฒนาเปิด MFA สำหรับครูและผู้ดูแลระบบ กำหนด custom attributes เช่น subscription tier และ school name และใช้ Lambda trigger เพื่อส่ง welcome email หลัง signup โดยไม่ต้องสร้างระบบ authentication เอง ประหยัดเวลาพัฒนาได้หลายสัปดาห์