You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I install UmbracoIdentity into a clean Umbraco 8 installation, UmbracoContext.InPreviewMode always returns false. The reason is that Umbraco.Context.Security.CurrentUser always returns null with UmbracoIdentity installed.
Can I do something to prevent this from happening?
The text was updated successfully, but these errors were encountered:
Now place your custom code and authentication configurations.
Finally at the end add these lines of code
// this must come after all authentication so should be moved within ConfigureMiddleware
app.UseUmbracoPreviewAuthentication(UmbracoContextAccessor, RuntimeState, GlobalSettings, UmbracoSettings.Security, PipelineStage.Authorize);
After I install UmbracoIdentity into a clean Umbraco 8 installation,
UmbracoContext.InPreviewMode
always returnsfalse
. The reason is thatUmbraco.Context.Security.CurrentUser
always returnsnull
with UmbracoIdentity installed.Can I do something to prevent this from happening?
The text was updated successfully, but these errors were encountered: