Copied to clipboard

Flag this post as spam?

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

  • Rob Oates 3 posts 73 karma points
    Sep 10, 2020 @ 09:53
    Rob Oates

    Page preview broken when using Umbraco Identity

    Unable to get page preview working whilst using Umbraco 8.5.3 and Umbraco Identity 7.1.0.

    I have even created a vanilla instance of the latest version of Umbraco (8.6.4) and Umbraco Identity (7.1.1) with the starter kit website and previewing is still broken. You are only ever seeing the published version of the page.

  • Yakov Lebski 427 posts 1656 karma points
    Dec 21, 2020 @ 22:03
    Yakov Lebski

    you should add this part to your code

                .UseUmbracoBackOfficeCookieAuthentication(UmbracoContextAccessor, RuntimeState, Services.UserService, GlobalSettings, UmbracoSettings.Security, PipelineStage.Authenticate)
                .UseUmbracoBackOfficeExternalCookieAuthentication(UmbracoContextAccessor, RuntimeState, GlobalSettings, PipelineStage.Authenticate)
                // TODO: this would be considered a breaking change but this must come after all authentication so should be moved within ConfigureMiddleware
                .UseUmbracoPreviewAuthentication(UmbracoContextAccessor, RuntimeState, GlobalSettings, UmbracoSettings.Security, PipelineStage.Authorize);
  • Fiona Garnet-Lawson 17 posts 97 karma points
    16 days ago
    Fiona Garnet-Lawson

    We have applied this code, but are still unable to preview editorial changes when using Umbraco (8.6.4) and Umbraco Identity (7.1.1). Do you have any other ideas that we can try?

  • Rob Oates 3 posts 73 karma points
    Jan 18, 2021 @ 11:09
    Rob Oates

    Thanks Yakov. The parameter list you have mentioned does not match what I have (Umbraco 8.5.3). In order, the maximum number of parameters for the three methods is 3, 2 and 2 respectively. What version are you using?



  • Rob Oates 3 posts 73 karma points
    Jan 18, 2021 @ 11:44
    Rob Oates

    Ignore my last comment Yakov - I was in the wrong project which was using Umbraco 7.15.3. Am trying it now...

Please Sign in or register to post replies

Write your reply to: