Copied to clipboard

Flag this post as spam?

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


  • Kevin 5 posts 97 karma points
    Sep 28, 2021 @ 09:39
    Kevin
    1

    Extend Microsoft Identity for 2FA

    I want to use Microsoft Identity for the 2FA for my Backend/Frontend Users.

    I have done this with pure dotnet core project by using the scaffolding and code generation methods.

    I have also tried this on an umbraco 9 rc 4 project. After successfully scaffolding Identity and run my application I get the following error.

    My question is since Umbraco 9 uses Microsoft Identity is it possible to extend this using 2FA ?

    System.InvalidOperationException HResult=0x80131509 Message=Scheme already exists: Identity.Application Source=Microsoft.AspNetCore.Authentication.Abstractions StackTrace: at Microsoft.AspNetCore.Authentication.AuthenticationOptions.AddScheme(String name, Action1 configureBuilder) at Microsoft.AspNetCore.Authentication.AuthenticationBuilder.<>c__DisplayClass4_02.

    This exception was originally thrown at this call stack: Microsoft.AspNetCore.Authentication.AuthenticationOptions.AddScheme(string, System.Action

Please Sign in or register to post replies

Write your reply to:

Draft