ระบบจะแจ้งให้ผู้ใช้ที่ลงชื่อเข้าใช้เป็นครั้งแรกยินยอมให้แชร์ข้อมูลโปรไฟล์บัญชี Google กับแพลตฟอร์มของคุณ
หากผู้ใช้ให้ความยินยอม ระบบจะแชร์ข้อมูลเข้าสู่ระบบที่เรียกว่าโทเค็นรหัส ซึ่งก็คือโทเค็นเว็บ JSON (JWT) เมื่อโหลดปุ่มลงชื่อเข้าใช้ด้วย Google, One Tap หรือการลงชื่อเข้าใช้อัตโนมัติ
สถานการณ์ที่พบบ่อยคือการสร้างบัญชีผู้ใช้ใหม่บนแพลตฟอร์มของคุณในระหว่างการลงชื่อสมัครใช้ ต่อมา ผู้ใช้อาจเลือกลบบัญชีและ "ยกเลิกการลิงก์" แพลตฟอร์มของคุณจากบัญชี Google ซึ่งจะหยุดการแชร์โทเค็นระบุตัวตน
การเรียกใช้เมธอดเพิกถอนจะกำหนดให้เจ้าของบัญชี Google ต้องให้ความยินยอมอีกครั้งเพื่อแชร์โทเค็นระบุตัวตนเมื่อเข้าชมเว็บไซต์ของคุณครั้งถัดไป
วิธีการเพิกถอน
Google ใช้การให้สิทธิ์ OAuth 2.0 เพื่อจัดการความยินยอมของผู้ใช้และการแชร์โทเค็นระบุตัวตนกับรหัสไคลเอ็นต์ของแพลตฟอร์ม การเพิกถอนความยินยอมจะหยุด Google ไม่ให้แชร์โทเค็นรหัสเมื่อหน้าเว็บใดๆ ในเว็บไซต์โหลดคลังลูกค้า
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-11-21 UTC"],[[["\u003cp\u003eUser consent to share an ID token, allowing your platform access to their Google Account profile information, can be revoked at any time.\u003c/p\u003e\n"],["\u003cp\u003eUsers can revoke consent either through their Google Account settings or your platform can initiate it programmatically using the \u003ccode\u003egoogle.accounts.id.revoke\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eRevoking consent requires the user to re-consent to share their ID token when they next visit your site, essentially "unlinking" your platform from their Google Account.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egoogle.accounts.id.revoke\u003c/code\u003e method specifically manages ID token sharing and does not affect OAuth2.0 authorization scopes or grants.\u003c/p\u003e\n"]]],[],null,[]]