webiny-configure-entraid
What it does
This skill guides your AI through adding Microsoft Entra ID sign-in to a Webiny project through Cognito. It is for developers who want Microsoft login for their team.
When to use it
- ✓When you want team members to sign in to Webiny with their Microsoft accounts.
- ✓When you need an Entra ID or Azure AD application set up for Webiny.
- ✓When you need the tenant ID and issuer URL for a Microsoft login.
Skill link
https://github.com/webiny/webiny-js/blob/next/skills/user-skills/configure-entraid/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agent’s skills folder.
Example of what to ask your AI
“Set up Microsoft login for our Webiny admin using Entra ID with our company tenant.”
5 new skills a week. 1 minute to read.
How it works
The skill lists the steps to register an app in the Microsoft Entra admin center and collect the client ID, client secret and tenant ID. Then it explains adding the federation setting to the Cognito extension in the configuration file.
Technical content (original SKILL.md)
Original text by the author, straight from 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
FAQ
Does Entra ID replace Cognito?
No. The skill says it works alongside Cognito, which remains the user pool.
What do I need from the Microsoft portal?
The application client ID, a client secret value and the directory tenant ID.
What does the issuer URL look like?
It follows the Microsoft login domain pattern, with the tenant ID and the v2.0 path.
Details
Original description by the author
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
Popularity
- GitHub stars
- 8.1k
- Ranking position
- #12596
- License
- —
- Updated
- 11/2/2026
Comments
- …
More skills from this repository
prd-to-plan
8.1kHelps your agent turn a product requirements document into a phased plan of small end-to-end slices, saved as a Markdown file.
webiny-admin-architect
8.1kTeaches your agent how to build admin screens for the Webiny platform, using its business logic layers and presenter pattern.
webiny-admin-permissions
8.1kTeaches your agent to add permission controls to Webiny admin screens, including auto-generated permission forms and hide-or-show checks.
webiny-form-model
8.1kTeaches your agent to build forms in Webiny using a declarative field builder, layouts, validation and conditional rules.
Similar skills
reverse-engineer-anything
422kHelps your agent look inside shipped apps and packages to explain features, compare versions, or guide a rebuild, using the REA tool.
1password
394kHelps your agent set up the 1Password CLI, sign in, and read or inject secrets without printing their values into chat.
healthcheck
394kHelps your agent audit the computer or server that runs OpenClaw for security risks, such as SSH, firewall, updates, and backups, then suggest safe fixes.