Copied to clipboard

Flag this post as spam?

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


  • Sanele Ngidi 14 posts 94 karma points
    Oct 18, 2022 @ 05:54
    Sanele Ngidi
    0

    Value cannot be null. (Parameter 'culture') on MS AAD External Auth Auto Linking

    I'm trying to implement Microsoft Active Directory External Auth for my Backoffice user in Umbraco version 10.2.0 following the documentations (https://our.umbraco.com/documentation/Reference/Security/Authenticate-with-Active-Directory/ and https://our.umbraco.com/documentation/Reference/Security/Auto-linking/) the implementation works when the user already exists and I did manual linking, however when when user doesn't exist the site becomes blank after login

    enter image description here

    and the following error on console occurs: enter image description here

    On browser console there are these following errors:

    enter image description here

    My implementation is as follows:

    OpenIdCoonectBackOfficeExternalLoginProviderOptions.cs

    OpenIdCoonectBackOfficeExternalLoginProviderOptions

    MicrosoftIdentityExtensions.cs

    enter image description here

    Startup.cs

    enter image description here

    I need assistance on this, I looked around and I couldn't find any solution. I would really appreciate your help.

  • Sanele Ngidi 14 posts 94 karma points
    Oct 18, 2022 @ 16:20
    Sanele Ngidi
    100

    I found the issue. it was on the OpenIdCoonectBackOfficeExternalLoginProviderOptions I have a schema name "OpenIdConnect" and on MicrosoftIdentityExtensions the schema as "Microsoft" the code logic on line 45 of OpenIdCoonectBackOfficeExternalLoginProviderOptions.cs returns and never configure the options from line 59.

Please Sign in or register to post replies

Write your reply to:

Draft