Copied to clipboard

Flag this post as spam?

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


  • Timo Willemsen 2 posts 72 karma points
    Oct 18, 2016 @ 16:39
    Timo Willemsen
    0

    Azure AD Identity doesn't seem to provide email for auto-linking

    Hi all,

    I've setup the Azure Active Directory Auth configuration and sigining in through our Azure AD works perfectly.

    I've modified the AuthenticationOptions so the External Sign in automatically links the accounts, but it seems like the Azure AD doesn't provide an e-mailaddress to link.

    adOptions.SetExternalSignInAutoLinkOptions(new ExternalSignInAutoLinkOptions(
                autoLinkExternalAccount:true));
    

    It gives me the following exception

    The requested provider (https://sts.windows.net/{id}) has not provided an email address, the account cannot be linked.
    

    Is there a way to make this work? It works perfectly without the SetExternalSignInAutoLinkOptions setting.

  • Kristian Andersen 8 posts 99 karma points
    Nov 22, 2017 @ 14:05
    Kristian Andersen
    0

    Timo, Did you managed to link the accounts automatically

Please Sign in or register to post replies

Write your reply to:

Draft