Related Tags:
Sitecore Sitecore is one of the leading enterprise-level content management systems built on ASP.NET, enabling web content editors and marketers to have full control over all aspects of their website from social integration and blog posts to advanced personalisation, e-commerce and more. Launched in 2001, Sitecore has used the .NET platform from the beginning of the language itself, and has been growing in popularity over the last few years. Currently on its 7th major version, it now runs on .NET 2.0/4.0, and the core has been rewritten from scratch to take advantage of the improvements made in ASP.NET 4.5. Learn More, Sitecore 10 Sitecore is a Web Content Management System (CMS) built on Microsoft ASP.net. This tag is for sitecore version 10.0 Learn More, Sitecore Unicorn Unicorn is a utility for Sitecore that solves the issue of moving templates, renderings, and other database items between Sitecore instances. This becomes problematic when developers have their own local instances - packages are error-prone and tend to be forgotten on the way to production. Learn More, Sitecore 9.3 Sitecore is a Web Content Management System (CMS) built on Microsoft ASP.net. This tag is for sitecore version 9.3 Learn More, Sitecore Identity Sitecore Identity (SI) is a mechanism to log in to Sitecore. It was introduced in Sitecore 9.1. It builds on the Federated Authentication functionality introduced in Sitecore 9.0 and the Sitecore Identity server, which is based on IdentityServer4. It provides a separate identity provider, and allows you to set up SSO (Single Sign-On) across Sitecore services and applications. Learn More,

sitecore unicorn access denied even after login with administrator

Description:I am keep getting the following error even after login with administrator it redirects to the unicorn.aspx page with the same error

Access Denied
You need to sign in to Sitecore as an administrator to use the Unicorn control panel.


Note: I have tried this with two different versions sitecore 9.3 and sitecore 10 because I have these version already installed on my machine but both version having the same issue. Mainly I am looking to make it working with sitecore 10 and unicorn version 4.1.6

Posted by: | Posted on: Jan 14, 2022

1 answers

Replies

5

This issue is with all versions of sitecore above 9.1 containing the sitecore identity to login.
To fix this you need to perform following three steps
1) Create a config file and paste the below chunk of code into that file and name it as "z.unicorn.fix.config".

<configuration>
<sitecore>
<pipelines>
<owin.cookieAuthentication.validateIdentity>
<processor type="Sitecore.Owin.Authentication.Pipelines.CookieAuthentication.ValidateIdentity.ValidateSiteNeutralPaths, Sitecore.Owin.Authentication">
<siteNeutralPaths hint="list">
<path hint="unicorn">/unicorn.aspx</path>
</siteNeutralPaths>
</processor>
</owin.cookieAuthentication.validateIdentity>
</pipelines>
</sitecore>
</configuration>

2)Place this file under your include folder of Unicorn for example following location:

<Project-root-path>\App_Config\Include\Unicorn


3)Now restart your IIS site and go to Unicorn control panel to verify the fix.

Replied by: | Replied on: Jan 14, 2022



Reply
×

Code block Hyperlink bold Quotes block Upload Images

Preview