نماذج التفويض: RBAC وABAC
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
choose between role-based and attribute-based access control, or combine them.
الموضوعات المخطط لها
- RBAC: permissions attach to roles, people get roles; simple to explain and audit.
- ABAC: decisions use attributes of the user, resource, and context, such as "store manager of the same store".
- Pure RBAC leads to role explosion when rules depend on store, region, or time.
- A common design: coarse roles plus attribute rules for scope.
تفاصيل المخطط المبدئي
عرض عملي
a table comparing RBAC and ABAC with the Larkspur rule "a store manager sees returns only for their own store" implemented as role StoreManager plus attribute storeId equal.
اختبر فهمك
Why does role explosion happen?
أظهر الإجابة
Every combination of scope and permission becomes its own role, such as "Manager-Store-014".
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.