-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Control Panel Authentication for Sitecore 9.1 (#328)
* Fix Unicorn control panel to work with 9.1 identity server * Fix login URL so it redirects properly in 9.1
- Loading branch information
1 parent
a3a667f
commit c2eb4fb
Showing
4 changed files
with
39 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/Unicorn/Standard Config Files/Unicorn.UI.IdentityServer.config.disabled
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
<!-- | ||
Unicorn UI Identity Server Configuration | ||
|
||
This file enables the Unicorn control panel to work with authentication in Sitecore 9.1 and above. | ||
|
||
This file should not be enabled on versions of Sitecore prior to 9.1. | ||
|
||
http://github.com/kamsar/Unicorn | ||
--> | ||
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:security="http://www.sitecore.net/xmlconfig/security/"> | ||
<sitecore role:require="Standalone or ContentManagement" security:require="Sitecore"> | ||
<pipelines> | ||
<!-- | ||
The Unicorn control panel path must be added to the list of site neutral paths for the Unicorn control panel to work with authentication in 9.1. | ||
This must match the activationUrl defined in the UnicornControlPanelPipelineProcessor defined in Unicorn.UI.config. | ||
--> | ||
<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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters