Configures Microsoft Account and Microsoft Entra ID (Azure AD) authentication in Orchard Core. Covers feature IDs, settings paths, recipe steps, callback URLs, and secret management.
Ships in orchardcore. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Enable one or both external-authentication features:
| Feature ID | Settings path |
|---|---|
OrchardCore.Microsoft.Authentication.MicrosoftAccount | Settings → Security → Authentication → Microsoft |
OrchardCore.Microsoft.Authentication.AzureAD | Settings → Security → Authentication → Microsoft Entra ID |
Both depend on OrchardCore.Users.ExternalAuthentication. Register each
tenant's exact HTTPS callback URL at the provider. To accept personal
Microsoft accounts together with work or school accounts, use Entra ID with
tenant common instead of the Microsoft Account feature.
The default callback path is /signin-microsoft. The module's recipe step is
named MicrosoftAccountSettings and replaces AppId, AppSecret, and
CallbackPath:
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Microsoft.Authentication.MicrosoftAccount"
]
},
{
"name": "MicrosoftAccountSettings",
"AppId": "microsoft-application-id",
"CallbackPath": "/signin-microsoft"
}
]
}
The handler decrypts the stored AppSecret with data protection, as saved
from the admin page; a recipe-imported secret is stored as is and fails to
decrypt. Supply the secret from the admin page or configuration, and note that
re-running the step clears it. The generic Settings step also accepts a
MicrosoftAccountSettings object with SaveTokens.
In 4.0, MicrosoftAccountSettings.AppSecretSecretName can name a TextSecret
of the Secrets module instead; it takes precedence over AppSecret. With the
OrchardCore.Secrets feature enabled, the admin page offers Use a secret
(suggested name MicrosoftAccount.AppSecret), and a saved secret can be moved
without retyping it from Tools → Security → Migrate Secrets. The generic
Settings step can set "AppSecretSecretName": "MicrosoftAccount.AppSecret"
after a Secrets step created the secret; the dedicated step has no
secret-name property. Microsoft Entra ID has no client secret setting. See
orchardcore-secrets.
Register an app in the Azure Portal with redirect URI /signin-oidc, enable
access tokens and ID tokens under implicit and hybrid flows, and add the
optional email claim to the ID token so existing users can be matched by
email. The Entra recipe step is AzureADSettings:
{
"steps": [
{
"name": "Feature",
"enable": [
"OrchardCore.Microsoft.Authentication.AzureAD"
]
},
{
"name": "AzureADSettings",
"DisplayName": "Sign in with Microsoft Entra ID",
"AppId": "entra-application-id",
"TenantId": "organizations",
"CallbackPath": "/signin-oidc"
}
]
}
TenantId | Who can sign in |
|---|---|
| Directory (tenant) ID | Accounts in your directory only |
organizations | Any work or school account |
common | Work, school, and personal Microsoft accounts |
Multi-tenant values broaden who can authenticate; combine them with
ExternalRegistrationSettings or login scripts to control local accounts.
Call ConfigureMicrosoftAccountSettings() and/or ConfigureAzureADSettings()
on the OrchardCoreBuilder:
builder.Services
.AddOrchardCms()
.ConfigureMicrosoftAccountSettings()
.ConfigureAzureADSettings();
{
"OrchardCore": {
"Authentication": {
"MicrosoftAccount": {
"AppId": "microsoft-application-id",
"AppSecret": "plain-app-secret",
"CallbackPath": "/signin-microsoft",
"SaveTokens": false
},
"AzureAD": {
"DisplayName": "Contoso account",
"AppId": "entra-application-id",
"TenantId": "organizations",
"CallbackPath": "/signin-oidc",
"SaveTokens": false
}
}
}
}
The Microsoft Account AppSecret is a plain value here, for example from the
OrchardCore__Authentication__MicrosoftAccount__AppSecret environment
variable; Orchard Core protects it before use. In 4.0 it logs a
LegacySecretConfiguration warning (event 8100). The section binds onto
MicrosoftAccountSettings, so set AppSecretSecretName here instead to
reference a secret, and remove AppSecret.
Enable OrchardCore.Users.Registration only when external identities may
create local Orchard users; see orchardcore-users-roles for
ExternalRegistrationSettings and the external login scripts.
OrchardCore_Microsoft_Authentication_MicrosoftAccount to OrchardCore:Authentication:MicrosoftAccount and OrchardCore_Microsoft_Authentication_AzureAD to OrchardCore:Authentication:AzureAD (old names still work but are deprecated).AppSecret from configuration is now honored; in 3.x it had to be already protected and was otherwise ignored. It logs LegacySecretConfiguration; move it to a secret.MicrosoftAccountSettings.AppSecret directly must also honor AppSecretSecretName.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
/orchardcore:orchardcore-microsoft-authfrom orchardcore
npx claudepluginhub crestapps/crestapps.agentskills --plugin orchardcore140 skills in this plugin
/orchardcore-adminGuidance for the Orchard Core admin panel, including admin controllers and routes, admin menu registration with AdminNavigationProvider, ocat editor forms grouped in cards, admin pages rendering Model.Editor, the UI text casing standard, TheAdmin layout and menu colors, admin branding, the Navbar shape, the Ctrl+K quick navigation palette and QuickNavigationSource, AdminSettings such as MenuBehavior, ShowBreadcrumb, DisplayQuickNavigation, DisplayTitlesInTopbar and ActionsLayout, the AdminDashboard shape, settings pages, and admin filters and zones. Use this skill when requests mention the Orchard Core admin panel, TheAdmin, admin controllers, admin menu registration, an icon on an admin menu item, the AdminSettings recipe step, quick navigation, navigation menu behavior, the admin URL prefix, UI text casing. Strong matches include OrchardCore.Admin, AdminSettings, AdminPermissions, AdminOptions, AdminAttribute, SiteDisplayDriver, IDisplayManager./orchardcore-admin-dashboardSkill for creating admin dashboard widgets in Orchard Core. Covers the DashboardWidget stereotype, DashboardPart position and sizing, the built-in HtmlDashboardWidget, ContentsMetadata and ContentsTags widget types, custom widget content types via recipe or migration, arranging widgets in Manage Dashboard mode, widget template customization, provisioning widgets with recipes, dashboard permissions, the DashboardBreadcrumbProvider Dashboard ancestor, and the AdminDashboardContent shape used when the feature is disabled. Use this skill when requests mention Orchard Core Admin Dashboard, Create and Configure Dashboard Widgets, Enabling Admin Dashboard, Widget Configuration Properties, dashboard widget recipes, Dashboard breadcrumb, or related implementation, setup, or troubleshooting work. Strong matches include OrchardCore.AdminDashboard, DashboardPart, DashboardBreadcrumbProvider, AccessAdminDashboard, ManageAdminDashboard.Other plugins' skills for the same job