Copied to clipboard

Flag this post as spam?

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

  • Sjaak van der Heide 23 posts 94 karma points
    1 week ago
    Sjaak van der Heide

    Hey all,

    I know this is not the first, and one of many, post about using ADFS in the backend. I've read most of the other posts on our about this, but to no avail.

    Let me start by saying I basically followed this:

    in combination with:


    My first issue is with:

    app.UseKentorOwinCookieSaver(); It is mentioned this has to be used to make sure cookies don't mess up the process. But the problem is, as a company we use our AD login as auth, which brakes when I enable the above setting.

    When I comment out that line I can see the login coming through but I get a "The requested provider has not been linked to an account"

    If I first login using my normal AD account and then press the Link ADFS button I can login using an anonymous browser using those same ADFS credentials for a while (probably until the cookies go bad because I am not using the line I mentioned above).

    But aside from that, I want Umbraco to create a new user when a valid ADFS account logs in and the user is unknown.

    I'v noticed this part:

    // The crucial bit, where we hook into the events when users login or when they are created
    wsFedOptions.SetExternalSignInAutoLinkOptions(new ExternalSignInAutoLinkOptions(true, new string[0])
        OnAutoLinking = OnAutoLinking,
        OnExternalLogin = OnExternalLogin

    and implemented it, and added a LogLine and an exception in both functions. They never get hit. I understand the documentation on 24days is for Umbraco 7, so perhaps something changed. Alas there is no documentation to be found about Umbraco 8 and ADFS.

    I did notice a few people here on OUR that got it working, but all of them never posted a real fix.

    TLDR; I am looking for a guide for configuring ADFS with Umbraco 8

  • Yakov Lebski 421 posts 1625 karma points
    1 week ago
  • Sjaak van der Heide 23 posts 94 karma points
    1 week ago
    Sjaak van der Heide

    Hey, sorry for the late reply. Had quite some busy days.

    unfortunately that is not what I am looking for. I am looking for ADFS, which is not like AD at all. Of course it does overlap, but the overlapping part I already have worked out.

Please Sign in or register to post replies

Write your reply to: