webiny-configure-entraid
하는 일
이 스킬은 Cognito를 통해 Webiny 프로젝트에 Microsoft Entra ID 로그인을 추가할 때 AI를 안내합니다. 팀을 위해 Microsoft 로그인을 원하는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓팀원이 Microsoft 계정으로 Webiny에 로그인하기를 원할 때.
- ✓Webiny를 위해 Entra ID나 Azure AD 애플리케이션을 설정해야 할 때.
- ✓Microsoft 로그인에 필요한 테넌트 ID와 발급자 URL이 필요한 경우.
스킬 링크
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/configure-entraid/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“회사 테넌트를 사용해 Entra ID로 Webiny 관리자에 Microsoft 로그인을 설정해 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
이 스킬은 Microsoft Entra 관리 센터에 앱을 등록하고, 클라이언트 ID, 클라이언트 비밀 값, 디렉터리 테넌트 ID를 얻는 단계를 나열합니다. 그다음 설정 파일의 Cognito 확장 기능에 연합 설정을 추가하는 방법을 설명합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Configure Microsoft Entra ID Authentication
TL;DR
Webiny supports Microsoft Entra ID (formerly Azure AD) as a federated identity provider through Cognito Federation. Unlike Okta or Auth0 which replace Cognito entirely, Entra ID works alongside Cognito — users authenticate via Microsoft, but Cognito remains the user pool. Configure it by adding federation to the <Cognito /> extension in webiny.config.tsx with your Entra ID application's client ID, client secret, and issuer URL.
Prerequisites
Before configuring Webiny, you need to register an application in the Microsoft Entra ID portal:
- Go to Microsoft Entra admin center > App registrations > New registration
- Set a name (e.g., "Webiny Admin")
- Set Supported account types (typically "Accounts in this organizational directory only")
- Set Redirect URI: Web — use your Cognito domain callback URL (you'll get this after the first deploy:
https://{domain}.auth.{region}.amazoncognito.com/oauth2/idpresponse) - After registration, note:
- Application (client) ID — this is your
client_id - Directory (tenant) ID — part of your issuer URL
- Application (client) ID — this is your
- Go to Certificates & secrets > New client secret — note the Value (this is your
client_secret) - The Issuer URL is:
https://login.microsoftonline.com/{tenant-id}/v2.0
Reference Tables
Required Entra ID Values
| Value | Where to find it | Used as |
|---|---|---|
| Application (client) ID | App registration > Overview | client_id in providerDetails |
| Client secret value | App registration > Certificates & secrets | client_secret in providerDetails |
| Directory (tenant) ID | App registration > Overview | Part of oidc_issuer URL |
Environment Variables
| Variable | Description |
|---|---|
ENTRA_CLIENT_ID |
Entra ID Application (client) ID |
ENTRA_CLIENT_SECRET |
Entra ID client secret value |
ENTRA_ISSUER |
https://login.microsoftonline.com/{tenant-id}/v2.0 |
Attribute Mapping
When Cognito receives tokens from Entra ID, it maps the OIDC claims to Cognito user attributes. The default OIDC mapping is:
| Cognito Attribute | OIDC Claim | Description |
|---|---|---|
username |
sub |
Unique user identifier |
custom:id |
sub |
Webiny internal user ID |
email |
email |
User's email address |
given_name |
given_name |
First name |
family_name |
family_name |
Last name |
preferred_username |
email |
Used as the Cognito username alias |
You can override this mapping with the attributeMapping property on the identity provider config. This is useful when:
- Your Entra ID uses non-standard claim names
- You want to skip
custom:idmapping (e.g., when thesubvalue exceeds the attribute's max length on existing pools) - You need to map additional custom attributes
{
name: "EntraID",
type: "oidc",
label: "Sign in with Microsoft",
providerDetails: { /* ... */ },
attributeMapping: {
username: "sub",
email: "email",
given_name: "given_name",
family_name: "family_name",
preferred_username: "email"
// custom:id intentionally omitted
}
}
When attributeMapping is provided, it replaces the defaults entirely — include all mappings you need.
Full Examples
Example 1: Basic Entra ID Federation
Step 1: Set environment variables
Add to your .env file:
# NOTE: these are made up example values
ENTRA_CLIENT_ID=f62ee823-2811-8314-a040-62848442c0d5
ENTRA_CLIENT_SECRET=~Gp7Q~97MAzTAUyeTLzTVzX31DRTY28chehU6c_a
ENTRA_ISSUER=https://login.microsoftonline.com/1cd0d912-0ac4-48a0-91b6-cd849ce9498f/v2.0
Step 2: Create the extension
Create extensions/entraid/Extension.tsx:
import React from "react";
import { Co
자주 묻는 질문
Entra ID가 Cognito를 대체하나요?
아닙니다. 스킬은 Entra ID가 Cognito와 함께 작동하며, Cognito는 사용자 풀로 남는다고 설명합니다.
Microsoft 포털에서 무엇이 필요한가요?
애플리케이션 클라이언트 ID, 클라이언트 비밀 값, 디렉터리 테넌트 ID입니다.
발급자 URL은 어떤 모양인가요?
Microsoft 로그인 도메인 형식을 따르며, 테넌트 ID와 v2.0 경로가 포함됩니다.
상세 정보
작성자의 원본 설명
Configuring Microsoft Entra ID (formerly Azure AD) as a federated identity provider for Webiny projects using Cognito Federation. Use this skill when the developer asks about Entra ID, Azure AD, Microsoft SSO, OIDC with Microsoft, Microsoft login for Webiny, or configuring login.microsoftonline.com as an identity provider. Also relevant for tenant IDs, Entra application registration, or connecting Microsoft 365 accounts to Webiny.
repo: webiny/webiny-js
인기도
- GitHub 스타
- 8.1k
- 순위
- #12596
- 라이선스
- —
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
prd-to-plan
8.1k에이전트가 제품 요구사항 문서를 작고 끝까지 이어지는 조각들로 된 단계별 계획으로 바꿔 Markdown 파일로 저장하도록 돕습니다.
webiny-admin-architect
8.1k에이전트에게 Webiny 플랫폼의 관리자 화면을 비즈니스 로직 계층과 프레젠터 패턴으로 만드는 방법을 가르칩니다.
webiny-admin-permissions
8.1k에이전트에게 Webiny 관리자 화면에 권한 제어를 추가하는 법을 가르칩니다. 스키마에서 권한 양식을 자동 생성하고 표시 여부를 확인합니다.
webiny-form-model
8.1k에이전트에게 선언형 필드 빌더, 레이아웃, 검증, 조건부 규칙으로 Webiny 양식을 만드는 법을 가르칩니다.