OIDC: طبقة الهوية فوق OAuth2
اكتشفوا كيف يضيف OpenID Connect طبقة هوية فوق OAuth2، مما يتيح المصادقة واتحاد الهوية.
OIDC: طبقة الهوية فوق OAuth2 درس مجاني في OAuth2 & OpenID Connect Deep Dive على CoddyKit. هذا هو الدرس 1 من أصل 4. يمكنك قراءة الدرس كاملاً أدناه مجاناً — ثم تمرن عليه مباشرة في المتصفح باستخدام محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7. هذا الدرس جزء من مسار التعلم في OAuth2 & OpenID Connect Deep Dive، وتقدمك يتزامن عبر الويب وتطبيق CoddyKit. تتضمن دورة OAuth2 & OpenID Connect Deep Dive 4 دروس في المجموع.
بعض أجزاء هذا الدرس لم تُترجم بعد وتظهر باللغة الإنجليزية.
Welcome to OpenID Connect!
You've learned about OAuth2 for authorization. Now, let's explore OpenID Connect (OIDC), the identity layer built on top of OAuth2.
OIDC helps applications verify a user's identity and get basic profile information securely.
OAuth2: Delegation, Not Identity
Remember, OAuth2 is an authorization protocol. It's designed to grant limited access to a user's resources without sharing their credentials.
- It tells you what a client can do.
- It doesn't tell you who the user is.
The Identity Gap
Imagine a user logging into an app using their Google account. OAuth2 would let the app access their Google Drive, but it wouldn't inherently tell the app the user's name or email.
Applications often need to know who the user is to personalize experiences or manage accounts.
OIDC Bridges the Identity Gap
This is where OpenID Connect comes in! OIDC is a simple identity layer built on top of the OAuth2 protocol.
It provides a standardized way for clients to verify the identity of an end-user based on the authentication performed by an Authorization Server.
OIDC's Primary Goal: Authentication
At its heart, OIDC is about authentication. It answers the question: "Who is this user?"
- Confirms the user's identity.
- Ensures the user is who they claim to be.
- Done by an Identity Provider (IdP).
User Identity through Claims
In OIDC, user identity is communicated through a special type of security token called an ID Token.
The ID Token contains pieces of information about the user, known as claims. These claims include things like the user's name, email, or a unique identifier.
The ID Token: Identity Proof
The ID Token is a JSON Web Token (JWT). It's signed by the Identity Provider, allowing client applications to verify its authenticity.
It's the core component that carries the user's identity information from the Identity Provider to the client.
Enabling Identity Federation
OIDC also enables identity federation. This means a user can use one set of credentials (e.g., their Google account) to log into multiple unrelated applications.
The Identity Provider acts as a trusted third party, federating the user's identity across different services.
Why Use OpenID Connect?
OIDC brings several advantages:
- Single Sign-On (SSO): Users log in once and access multiple apps.
- Simplified Development: Standardized identity layer reduces complexity for developers.
- Enhanced Security: Builds on OAuth2's security features.
OIDC vs. OAuth2 Quiz
Let's test your understanding of the core difference between OAuth2 and OpenID Connect.
OIDC: Your Identity Guide
Great job! You now understand that OpenID Connect is an identity layer built on top of OAuth2.
- OAuth2: Authorization (what you can do).
- OIDC: Authentication (who you are), using ID Tokens and claims.
Next, we'll dive deeper into the structure and content of these powerful ID Tokens!
الأسئلة الشائعة
هل درس «OIDC: طبقة الهوية فوق OAuth2» مجاني؟
نعم — نص درس «OIDC: طبقة الهوية فوق OAuth2» كامل متاح مجاناً هنا على الويب. لتمرينه بشكل تفاعلي (محرر أكواد مدمج ومدرس ذكاء اصطناعي متاح 24/7) وفتح باقي دورة OAuth2 & OpenID Connect Deep Dive، انتقل إلى CoddyKit PRO. تتضمن دورة OAuth2 & OpenID Connect Deep Dive 4 دروس في المجموع.
ماذا ستتعلم في «OIDC: طبقة الهوية فوق OAuth2»؟
اكتشفوا كيف يضيف OpenID Connect طبقة هوية فوق OAuth2، مما يتيح المصادقة واتحاد الهوية. تتمرن على OAuth2 & OpenID Connect Deep Dive مع أكواد عملية تشغلها مباشرة في المتصفح، ومدرس ذكاء اصطناعي متاح 24/7 يجيب على أسئلتك أثناء عملك.
هل أحتاج إلى خبرة سابقة لأبدأ OAuth2 & OpenID Connect Deep Dive؟
لا تُشترط خبرة سابقة. OAuth2 & OpenID Connect Deep Dive على CoddyKit منظم للمبتدئين حتى المتقدمين، لذا يمكنك البدء من هنا أو من البداية والتقدم بسرعتك الخاصة. هذا هو الدرس 1 من أصل 4.
كم من الوقت يستغرق درس «OIDC: طبقة الهوية فوق OAuth2»؟
معظم دروس CoddyKit تستغرق حوالي 5–10 دقائق. كل منها موجز وتفاعلي، لذا تحرز تقدماً مستمراً وتستأنف من حيث توقفت عبر الويب والتطبيق.
هل يمكنني كتابة وتشغيل أكواد في درس OAuth2 & OpenID Connect Deep Dive هذا؟
نعم. كل درس في OAuth2 & OpenID Connect Deep Dive يتضمن محرر أكواد مدمج، لذا تكتب وتشغل أكواداً حقيقية مباشرة في متصفحك وتحصل على تعليقات فورية من الذكاء الاصطناعي — بدون إعداد محلي.
جميع الدروس في هذه الدورة
- OIDC: طبقة الهوية فوق OAuth2
- رموز ID والمطالبات
- نظرة عامة على تدفقات OIDC
- نقطة نهاية UserInfo