0Pricing
OAuth2 & OpenID Connect Deep Dive · บทเรียน

OIDC: ชั้นอัตลักษณ์บน OAuth2

ค้นพบว่า OpenID Connect เพิ่มชั้นอัตลักษณ์บน OAuth2 ได้อย่างไร ทำให้รองรับการยืนยันตัวตนและการเชื่อมโยงอัตลักษณ์

OIDC: ชั้นอัตลักษณ์บน OAuth2 เป็นบทเรียน OAuth2 & OpenID Connect Deep Dive ฟรีบน CoddyKit นี่คือบทเรียนที่ 1 จากทั้งหมด 4 บทเรียน คุณสามารถอ่านบทเรียนทั้งหมดด้านล่างฟรี — จากนั้นลองปฏิบัติด้วยตัวคุณเองในเบราว์เซอร์พร้อมตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 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” ฟรีให้อ่านที่นี่บนเว็บ เพื่อปฏิบัติแบบโต้ตอบ (ตัวแก้ไขโค้ดในตัวและติวเตอร์ AI ตลอด 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 ด้วยโค้ดที่ใช้งานได้จริงที่คุณเรียกใช้โดยตรงในเบราว์เซอร์ และติวเตอร์ AI ตลอด 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 ทุกบทมีตัวแก้ไขโค้ดในตัว คุณจึงเขียนและรันโค้ดจริงได้เลยในเบราว์เซอร์ และได้รับข้อเสนอแนะจาก AI ในทันที — ไม่ต้องติดตั้งในเครื่องของคุณ

บทเรียนทั้งหมดในหลักสูตรนี้

  1. OIDC: ชั้นอัตลักษณ์บน OAuth2
  2. โทเค็น ID และข้ออ้างสิทธิ์
  3. ภาพรวมโฟลว์ OIDC
  4. จุดปลายทาง UserInfo
← กลับไปที่ OAuth2 & OpenID Connect Deep Dive