OIDC 검색 엔드포인트
OIDC 검색 엔드포인트를 통해 클라이언트가 필요한 모든 OIDC 설정 정보를 프로그래밍 방식으로 가져오는 방법을 배워 보세요.
OIDC 검색 엔드포인트은(는) CoddyKit의 무료 OAuth2 & OpenID Connect Deep Dive 강의입니다. 이것은 4개 중 2번째 강의입니다. 아래에서 전체 강의를 무료로 읽을 수 있으며, 내장 코드 에디터와 24/7 AI 튜터와 함께 브라우저에서 직접 실습할 수 있습니다. 이 강의는 OAuth2 & OpenID Connect Deep Dive 학습 경로의 일부이며, 진행 상황이 웹과 CoddyKit 앱에 동기화됩니다. OAuth2 & OpenID Connect Deep Dive 강의에는 총 4개의 강의가 포함되어 있습니다.
이 강의의 일부는 아직 번역되지 않았으며 영어로 표시됩니다.
What is OIDC Discovery?
Imagine you're building an application that needs to connect to an OpenID Provider (IdP) like Google or Auth0. How do you know its authorization URL, token URL, or how to get its public keys?
Manually configuring these details for every IdP is tedious and error-prone. This is where OIDC Discovery comes in!
The Discovery Endpoint
OIDC Discovery provides a standardized way for clients to find all the necessary configuration information of an OpenID Provider.
Instead of hardcoding URLs, your client application can fetch a single JSON document from a well-known URL. This document contains all the endpoints and capabilities of the IdP.
Finding the Discovery Document
Clients typically access the OIDC Discovery document at a specific, standardized URL:
- Base URL of the OpenID Provider
- Followed by
/.well-known/openid-configuration
For example, if your IdP's base URL is https://accounts.example.com, the discovery endpoint would be https://accounts.example.com/.well-known/openid-configuration.
Key Fields: Issuer & JWKS URI
The discovery document is a JSON object with many fields. Two crucial ones are:
issuer: A URL that uniquely identifies the OpenID Provider. It must match theissclaim in ID Tokens.jwks_uri: The URL of the JSON Web Key Set (JWKS) document. This document contains the public keys used by the IdP to sign ID Tokens, allowing your client to verify their authenticity.
Key Fields: Endpoints
The discovery document lists the various endpoints your client will interact with:
authorization_endpoint: Where the user is redirected to grant consent.token_endpoint: Where the client exchanges the authorization code for access and ID tokens.userinfo_endpoint: Where the client can request user profile information after obtaining an access token.end_session_endpoint: (Optional) Where the client can redirect the user to log out from the IdP.
Key Fields: Capabilities
The document also declares the IdP's capabilities:
scopes_supported: A list of the OAuth 2.0scopevalues that this IdP supports.response_types_supported: A list of the OAuth 2.0response_typevalues that this IdP supports.grant_types_supported: (Optional) A list of the OAuth 2.0grant_typevalues that this IdP supports.
These help your client understand what features are available.
Example Discovery Document
Here's a simplified example of what an OIDC Discovery document might look like:
{
"issuer": "https://example.com/openid",
"authorization_endpoint": "https://example.com/openid/auth",
"token_endpoint": "https://example.com/openid/token",
"userinfo_endpoint": "https://example.com/openid/userinfo",
"jwks_uri": "https://example.com/openid/jwks",
"scopes_supported": [
"openid",
"profile",
"email"
],
"response_types_supported": [
"code",
"id_token",
"token id_token"
],
"grant_types_supported": [
"authorization_code",
"implicit",
"refresh_token"
],
"id_token_signing_alg_values_supported": [
"RS256"
]
}How Clients Use Discovery
A client application can perform OIDC Discovery by:
- Fetching the JSON document from the
/.well-known/openid-configurationendpoint. - Parsing the JSON to extract the necessary URLs and capabilities.
- Using these dynamically discovered values to construct authorization requests, exchange tokens, and validate ID Tokens.
This makes client integration much more robust and future-proof.
Benefits of Discovery
Using OIDC Discovery offers several advantages:
- Reduced Configuration: Clients don't need to hardcode IdP endpoints.
- Increased Flexibility: IdPs can change endpoint URLs without breaking clients.
- Enhanced Security: Clients can easily find the
jwks_urito verify ID Token signatures. - Interoperability: Promotes a standardized way for clients to interact with any OIDC-compliant IdP.
Test Your Knowledge
Which of the following fields in the OIDC Discovery document is used by a client to verify the signature of an ID Token?
Recap: OIDC Discovery
We've learned that OIDC Discovery provides a standardized way for clients to find an OpenID Provider's configuration.
- Clients access a well-known
/.well-known/openid-configurationendpoint. - The returned JSON document contains essential URLs (authorization, token, userinfo, jwks) and capabilities (scopes, response types).
- This automation simplifies client setup, improves flexibility, and enhances security by providing necessary public keys for token validation.
자주 묻는 질문
“OIDC 검색 엔드포인트” 강의는 무료인가요?
네 — “OIDC 검색 엔드포인트” 전체 내용을 이 웹사이트에서 무료로 읽을 수 있습니다. 인터랙티브하게 실습하려면(내장 코드 에디터와 24/7 AI 튜터), CoddyKit PRO로 업그레이드하면 OAuth2 & OpenID Connect Deep Dive 강의 전체를 잠금 해제할 수 있습니다. OAuth2 & OpenID Connect Deep Dive 강의에는 총 4개의 강의가 포함되어 있습니다.
“OIDC 검색 엔드포인트”에서 뭘 배우나요?
OIDC 검색 엔드포인트를 통해 클라이언트가 필요한 모든 OIDC 설정 정보를 프로그래밍 방식으로 가져오는 방법을 배워 보세요. 브라우저에서 직접 실행하는 실습 코드로 OAuth2 & OpenID Connect Deep Dive을(를) 배우며, 24/7 AI 튜터가 강의를 진행하면서 질문에 답변해줍니다.
OAuth2 & OpenID Connect Deep Dive을(를) 시작하는 데 경험이 필요한가요?
사전 경험은 필요하지 않습니다. CoddyKit의 OAuth2 & OpenID Connect Deep Dive은(는) 초급자부터 고급 학습자까지를 위해 구성되어 있으므로, 여기서 시작하거나 처음부터 시작할 수 있으며 자신의 속도대로 진행할 수 있습니다. 이것은 4개 중 2번째 강의입니다.
“OIDC 검색 엔드포인트” 강의는 얼마나 걸리나요?
대부분의 CoddyKit 강의는 약 5~10분이 소요됩니다. 각 강의는 간결하고 인터랙티브하여 꾸준한 진행이 가능하며, 웹과 앱에서 중단한 부분부터 바로 시작할 수 있습니다.
이 OAuth2 & OpenID Connect Deep Dive 강의에서 코드를 작성하고 실행할 수 있나요?
네. 모든 OAuth2 & OpenID Connect Deep Dive 강의에는 내장 코드 에디터가 포함되어 있으므로, 브라우저에서 바로 실제 코드를 작성하고 실행한 후 즉시 AI 피드백을 받을 수 있습니다 — 로컬 설정이 필요 없습니다.
이 강의의 모든 강의
- 동적 클라이언트 등록
- OIDC 검색 엔드포인트
- 세션 관리
- 클레임 요청 및 집계된 클레임