הגדרה של ריבוי דיירים ב-Identity Platform
במדריך המקוצר הזה מוסבר איך להפעיל ריבוי דיירים ב-Identity Platform ואיך ליצור דיירים חדשים ולבחור אותם באמצעות Google Cloud המסוף.
מידע נוסף על ריבוי דיירים ב-Identity Platform זמין במאמר בנושא ריבוי דיירים.
לחצו על תראו לי איך כדי לקרוא הסבר מפורט על המשימה ישירות במסוף Google Cloud :
לפני שמתחילים
- נכנסים לחשבון Google Cloud . אם אתם משתמשים חדשים ב- Google Cloud, צרו חשבון כדי שתוכלו להעריך את הביצועים של המוצרים שלנו בתרחישים מהעולם האמיתי. לקוחות חדשים מקבלים בחינם גם קרדיט בשווי 300$ להרצה, לבדיקה ולפריסה של עומסי העבודה.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
-
In the Google Cloud console, on the project selector page, select or create a Google Cloud project.
Roles required to select or create a project
- Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
-
Create a project: To create a project, you need the Project Creator role
(
roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.createpermission. Learn how to grant roles.
-
If you're using an existing project for this guide, verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.
-
Verify that billing is enabled for your Google Cloud project.
התפקידים הנדרשים
כדי לקבל את ההרשאות שנדרשות להגדרת ריבוי דיירים, צריך לבקש מהאדמין להקצות לכם ב-IAM את התפקיד אדמין של Identity Platform (roles/identityplatform.admin) בפרויקט.
כדי לקרוא הסבר על מתן תפקידים, ראו איך מנהלים את הגישה ברמת הפרויקט, התיקייה והארגון.
זהו תפקיד שמוגדר מראש וכולל את ההרשאות שנדרשות להגדרת ריבוי דיירים. כדי לראות בדיוק אילו הרשאות נדרשות, אפשר להרחיב את הקטע ההרשאות הנדרשות:
ההרשאות הנדרשות
כדי להגדיר ריבוי דיירים, צריך את ההרשאות הבאות:
-
firebaseauth.configs.update -
identitytoolkit.tenants.create
יכול להיות שתקבלו את ההרשאות האלה באמצעות תפקידים בהתאמה אישית או תפקידים מוגדרים מראש אחרים.
הפעלת ריבוי דיירים
במסוף Google Cloud , עוברים לדף Identity Platform > Settings.
מעבר להגדרותלוחצים על הכרטיסייה אבטחה.
בקטע Multi-tenancy (ריבוי דיירים), לוחצים על Allow tenants (התרת דיירים).
הפעולה הזו תפעיל ריבוי דיירים ותפתח את הדף דיירים.
עכשיו אפשר ליצור את הדייר הראשון.
יצירת דייר
בדף Tenants (דיירים), לוחצים על Add tenant (הוספת דייר).
בשדה שם, מזינים שם לדייר. המזהה הזה לא צריך להיות ייחודי, כי Identity Platform מקצה מזהה נפרד באופן אוטומטי.
לוחצים על Save.
כל הכבוד! יצרתם דייר Identity Platform.
בחירת דייר (tenant)
בדף הגדרות, בוחרים את הדייר מהרשימה היקף לדייר.
לכל דייר יש ספקים ומשתמשים משלו. אחרי שבוחרים דייר, אפשר לנהל אותו באותו אופן שבו מנהלים פרויקט Identity Platform שאינו דייר.
השבתת ריבוי דיירים
כדי להשבית את התכונה 'ריבוי דיירים', משתמשים ב-Identity Toolkit API.