Getting error No authentication handler is registered for the scheme 'Umbraco.ActiveDirectoryB2C'

Hi,

I’m using Umbraco v15.0 and trying to setup back office integration with Microsoft active directory.

After setting up, I’m observing the following error.

“type”: “Error”,
“title”: “No authentication handler is registered for the scheme ‘Umbraco.ActiveDirectoryB2C’. The registered schemes are: OpenIddict.Server.AspNetCore, OpenIddict.Validation.AspNetCore, UmbracoBackOffice, UmbracoExternalCookie, UmbracoTwoFactorCookie, UmbracoTwoFactorRememberMeCookie, Identity.Application, Identity.External, Identity.TwoFactorRememberMe, Identity.TwoFactorUserId, UmbracoMembers.ActiveDirectoryB2C. Did you forget to call AddAuthentication().AddSomeAuthHandler?”,
“status”: 500,

I followed the below url and hooked up directly without any composers. Could anyone please help me in resolving error.

program.cs

builder.CreateUmbracoBuilder()
.AddBackOffice()
.AddWebsite()
.AddComposers()
.ConfigureAuthenticationMembers()
.Build();

umbraco-package.json
{
“$schema”: “../../umbraco-package-schema.json”,
“name”: “My Auth Package”,
“allowPublicAccess”: true,
“extensions”: [
{
“type”: “authProvider”,
“alias”: “SOl.SSO.EntraIDB2CMembersExternalLoginProviderOptions”,
“name”: “MemberAuthenticationExtensions”,
“forProviderName”: “Umbraco.ActiveDirectoryB2C”,
“meta”: {
“label”: “generic”,
“defaultView”: {
“icon”: “icon-cloud”
},
“behavior”: {
“autoRedirect”: false
},
“linking”: {
“allowManualLinking”: true
}
}
}
]
}


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115024-getting-error-no-authentication-handler-is-registered-for-the-scheme-umbracoactivedirectoryb2c

I am having the same issue im using umbraco 16. Any progress on this?

the fix for me was to update the forProviderName in the umbraco-package.json file. I just had Microsoft when it needed to be Umbraco.Microsoft