عرض عملي: إعداد Keycloak وتدفق رمز التفويض + PKCE
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
run Keycloak and get tokens with the code flow. Prepares JNR-039-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Start Keycloak locally with Docker; verify image and version before recording.
- Create a realm
shop, a client with PKCE enabled, realm rolescustomerandadmin, and two users. - In Postman, use the OAuth 2.0 authorization code with PKCE option and log in.
- Decode the access token and find
iss,aud, and the roles. - Planned mistake: a wrong redirect URI in the client setup gives an "invalid redirect" error. Fix: register the exact URI.
- Compare the access token with the ID token.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.