Sitecore Identity Configuration with Azure Front Door / Blogs / Perficient

Use Case

I want all requests to my Azure PaaS Sitecore 10.3 + Identity 7.x site to use Azure Front Door. I do not want to configuring custom domains on my web apps and the web apps should be secured with private endpoints.


By default, Sitecore Identity uses the host, protocol, and port from the HTTP request when creating links. Which means these values would come from the request Front Door makes to the Identity web app on the default Azure domain and login flow for CM + Identity would not work. In the past, this was solved by: adding custom domains to web apps or adding a custom plugin or overriding request headers or foregoing the use of a reverse proxy and allowing direct access to CM/Identity (gasp!)


Assuming Front Door has been configured with endpoints and routes for your CM and Identity and all other required configuration has been done (setting client secrets, AllowedCorsOrigins, etc.), you can update the PublicOrigin property to override the origin used for link generation:

  • Go to sitecore/Sitecore.Plugin.IdentityServer/Config/identityServer.xml
  • Enable the <PublicOrigin> node
  • Set the value to your Front Door Identity domain

This will ensure the Identity custom domain from Front Door is used for link generation and allow the full login flow to complete with all requests going through Front Door and without introducing a security risk.


I hope you find this article helpful. Follow me on LinkedIn for future posts.

Source link

Related Articles

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Back to top button
Social media & sharing icons powered by UltimatelySocial

Enjoy Our Website? Please share :) Thank you!

New Social Bookmarking Site Lists 2023

We will update more Social Bookmarking lists soon. Visit all our social bookmarking sites' pages regularly..

New Social Bookmarking Sites List,
USA Social Bookmarking Sites,
UK Social Bookmarking Sites,
Netherlands Social Bookmarking Sites,
Top USA Social Bookmarking,
Alexa Traffic Social Bookmarking Sites,
High DA Social Bookmarking Sites, and
High DR Social Bookmarking Sites.

Submit your Website