Copied to clipboard

Flag this post as spam?

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


  • Karthik Swaminathan 1 post 71 karma points
    1 week ago
    Karthik Swaminathan
    0

    Umbraco 10 backoffice authentication with Microsoft account

    Hello,

    I've setup Umbraco 10 with .Net 6 and configured "MicrosoftAccount" as a BackOffice login option. I'm redirected to the Microsoft login page and able to authenticate successfully.

    I've overridden the "AutoLinkOptions" to add the user to the "admin" role and set "EmailConfirmed" to true. I've verified that the user is being added to the Umbraco User table and relevant entries are being added to the ExternalLogin, User2UserGroup, and UserLogin tables as well.

    However, I get a blank page in the BackOffice - network trace shows that "GetCurrentUser" call fails with 401. I also noticed that the "userDisabled" flag defaults to true in the User table (setting it to true didn't make a difference).

    Any suggestions to work around this issue would be appreciated.

    Thanks, Karthik.

Please Sign in or register to post replies

Write your reply to:

Draft