Skills

Webiny Configure Entraid

Configuring Microsoft Entra ID (formerly Azure AD) as a federated identity provider for...

Install

npx skills add webiny/webiny-js --skill webiny-configure-entraid -g -a claude-code -y
Repository
webiny/webiny-js8.1k
Category
DevOps
Updated
5d ago
License
See repository
Context cost
Mediumabout 2,973 tokens
Runs scripts
No, instructions only

What it does

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.

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:

  1. Go to Microsoft Entra admin center > App registrations > New registration
  2. Set a name (e.g., "Webiny Admin")
  3. Set Supported account types (typically "Accounts in this organizational directory only")
  4. 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)
  5. After registration, note:
    • Application (client) ID, this is your client_id
    • Directory (tenant) ID, part of your issuer URL
  6. Go to Certificates & secrets > New client secret, note the Value (this is your client_secret)
  7. The Issuer URL is: https://login.microsoftonline.com/{tenant-id}/v2.0

Reference Tables

Required Entra ID Values

ValueWhere to find itUsed as
Application (client) IDApp registration > Overviewclient_id in providerDetails
Client secret valueApp registration > Certificates & secretsclient_secret in providerDetails
Directory (tenant) IDApp registration > OverviewPart of oidc_issuer URL
Read the whole SKILL.md on GitHub

More in DevOps