Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Nagarjun 42 posts 74 karma points
    Nov 26, 2024 @ 08:04
    Nagarjun
    0

    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.

    https://docs.umbraco.com/umbraco-cms/tutorials/add-microsoft-entra-id-authentication

    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 } } } ] }

Please Sign in or register to post replies

Write your reply to:

Draft