1

I am using federated authentication to login/signup to the websites in multi sites architecture. No issues for the websites but for the cms when I open cmsurl.com/sitecore it takes to the website's login page

I have created a patch config that has:

  1. pipeline processor,
  2. map entries for identityProvidersPerSites,
  3. and the designated identity provider for identityProviders.

Wondering what can cause this? may be config patch order or something? Any insights or recommendations would be really helpful.

2 Answers 2

2

We have used the following patch for the CM site to force login to Azure when they hit the CM backend and for admin path we force to identity server login.

<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:set="http://www.sitecore.net/xmlconfig/set/" xmlns:role="http://www.sitecore.net/xmlconfig/role/" xmlns:security="http://www.sitecore.net/xmlconfig/security/">
  <sitecore role:require="ContentManagement">   
    <sites>
    <!-- Force redirect to Azure login page -->
      <site name="shell" set:loginPage="$(loginPath)shell/SitecoreIdentityServer/IdS4-AzureAd" />
    <!-- Force redirect to regular login page -->
      <site name="admin" set:loginPage="$(loginPath)admin/SitecoreIdentityServer" />
    </sites>
  </sitecore>
</configuration>
4
  • 1
    any way to distinguish in Standalone setting
    – manaslu
    Sep 26, 2021 at 3:48
  • 1
    This works in standalone too, if you are asking for XP0.
    – Bala
    Sep 27, 2021 at 4:27
  • Hi @Bala I added this ContentManagement or Standalone but still External IdentityProvider intercepts the login for the CMS
    – manaslu
    Sep 27, 2021 at 20:47
  • Please use the sitecore\admin\showconfig.aspx and see which one is effective and taking effect.
    – Bala
    Sep 29, 2021 at 16:51
0

The question here seems similar to the one you posted here: Issues with IdentityProvidersProcessor Sitecore Federated Autentication in multisite architecture

Maybe my answer there can also help you: https://sitecore.stackexchange.com/a/31311/3309

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.