Created
June 6, 2018 00:46
-
-
Save georgechang/514baacae2b47bd513e1e6f89b8a9a62 to your computer and use it in GitHub Desktop.
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/"> | |
<sitecore> | |
<federatedAuthentication> | |
<identityProviders> | |
<identityProvider id="saml2" type="Sitecore.Owin.Authentication.Configuration.DefaultIdentityProvider, Sitecore.Owin.Authentication"> | |
<param desc="name">$(id)</param> | |
<param desc="domainManager" type="Sitecore.Abstractions.BaseDomainManager" resolve="true" /> | |
<caption>Login with Azure Active Directory (SAML2p)</caption> | |
<domain>sitecore</domain> | |
</identityProvider> | |
</identityProviders> | |
<identityProvidersPerSites> | |
<mapEntry name="saml2" type="Sitecore.Owin.Authentication.Collections.IdentityProvidersPerSitesMapEntry, Sitecore.Owin.Authentication"> | |
<sites hint="list"> | |
<site>shell</site> | |
<site>login</site> | |
<site>admin</site> | |
<site>service</site> | |
<site>modules_shell</site> | |
<site>modules_website</site> | |
<site>website</site> | |
<site>scheduler</site> | |
<site>system</site> | |
<site>publisher</site> | |
</sites> | |
<identityProviders hint="list:AddIdentityProvider"> | |
<identityProvider ref="federatedAuthentication/identityProviders/identityProvider[@id='saml2']" /> | |
</identityProviders> | |
<externalUserBuilder type="Sitecore.Owin.Authentication.Services.DefaultExternalUserBuilder, Sitecore.Owin.Authentication"> | |
<param desc="isPersistentUser">true</param> | |
</externalUserBuilder> | |
</mapEntry> | |
</identityProvidersPerSites> | |
<propertyInitializer type="Sitecore.Owin.Authentication.Services.PropertyInitializer, Sitecore.Owin.Authentication"> | |
<maps hint="list"> | |
<map name="saml2admin" type="Sitecore.Owin.Authentication.Services.DefaultClaimToPropertyMapper, Sitecore.Owin.Authentication"> | |
<data hint="raw:AddData"> | |
<source name="idp" value="saml2" /> | |
<target name="IsAdministrator" value="true" /> | |
</data> | |
</map> | |
</maps> | |
</propertyInitializer> | |
</federatedAuthentication> | |
</sitecore> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment