حدود التفويض من البداية إلى النهاية
في هذا الدرس 4 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
verify that every path to data checks who may do what.
الموضوعات المخطط لها
- Authentication says who; authorization says what they may do on which object.
- Check each path: public API, internal service calls (do not trust a call merely because it is internal), message consumers, batch jobs, admin tools, direct database access.
- Common failures: object-level access (change an ID and see another customer's order), missing checks on internal endpoints, over-broad service credentials, confused deputy.
- Propagate identity and enforce at the data layer; test negative cases.
تفاصيل المخطط المبدئي
عرض عملي
Matrix: path | caller identity | check performed | where enforced | test. Example row: GET /orders/{id} | customer token | order.customerId equals subject | orders service | cross-customer test.
اختبر فهمك
Why test by changing an object ID?
أظهر الإجابة
To detect missing object-level authorization.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.