שירותי הזהויות של Google עוברים לממשקי API של FedCM. פועלים לפי ההוראות במדריך להעברת נתונים (מיגרציה) כדי לבדוק את השינויים האפשריים ולמנוע השפעות שליליות על הכניסה של המשתמשים לאתר.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
סקירה כללית
אפשר לבטל את הסכמת המשתמש לשיתוף אסימון מזהה.
משתמשים שנכנסים לחשבון בפעם הראשונה מתבקשים להביע הסכמה לשיתוף פרטי הפרופיל שלהם בחשבון Google עם הפלטפורמה שלכם.
אם המשתמש נותן הסכמה, פרטי הכניסה של אסימון רשת מבוסס JSON (JWT), שנקרא אסימון מזהה, משותפים כשאחד מהלחצנים של 'כניסה באמצעות חשבון Google', 'קליק אחד' או 'כניסה אוטומטית' נטען.
תרחיש נפוץ הוא יצירת חשבון משתמש חדש בפלטפורמה במהלך ההרשמה. מאוחר יותר, משתמש יכול לבחור למחוק את החשבון שלו ולבטל את הקישור של הפלטפורמה שלכם לחשבון 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,["# Revoke ID tokens\n\nOverview\n--------\n\nUser consent to share an ID token can be revoked.\n\nUsers signing in for the first time are prompted for consent to share their\nGoogle Account profile information with your platform.\n\nIf user consent is given a JSON Web Token (JWT)\n[credential](/identity/gsi/web/reference/js-reference#credential) known as an\nID token is shared when any of the Sign In With Google, One Tap or Automatic\nsign-in buttons are loaded.\n\nA common scenario is for a new user account to be created on your platform\nduring sign up. Later, a user may choose to delete their account and \"unlink\"\nyour platform from their Google Account, stopping ID token sharing.\n\nCalling the revoke method requires the Google Account owner to re-consent to\nshare the ID token on their next visit to your site.\n\nRevocation methods\n------------------\n\nGoogle uses an OAuth 2.0 grant to manage user consent and ID token sharing to\nyour platform's Client ID. Revoking consent stops Google from sharing the\nID token when the client library is loaded by any pages on your site.\n\nThese methods can be used to revoke consent,\n\n1. Users sign in to their Google Account, find your app in the [Third-party apps with account access](https://myaccount.google.com/permissions) settings and select **Remove Access**.\n2. Your platform calls [`google.accounts.id.revoke`](/identity/gsi/web/reference/js-reference#google.accounts.id.revoke).\n\nThe following code sample shows how to use the `revoke` method. \n\n```transact-sql\n google.accounts.id.revoke('user@google.com', done =\u003e {\n console.log('consent revoked');\n });\n```\n\n\u003cbr /\u003e\n\n| **Key Point:** This method applies only to ID token sharing and cannot be used to manage OAuth2.0 authorization scopes. OAuth revocation methods cannot be used to manage ID token grants."]]