title: Custom Branding for Login on a Azure AD Multi-Tenant App
body: <p><strong>Question: How can I custom brand my Azure AD application login page? (note: <em>NOT</em> my org's login page; see below)</strong></p>
  
  <p>I have a web application hosted in Azure where users can log in using accounts that are created and managed within the application. Since my application is used by many big organizations, I have added the capability for customers to also sign in using their account that's managed by their organization (single sign on). This was done using Azure Active Directory, which syncs the local AD accounts into Azure where cloud authentication occurs. Since this application is used by many organizations all with their own separate ADs, I created the Active Directory application within Azure as multi-tenanted. With all of this done, the new login process works perfectly, however, I can't figure out how to brand the Microsoft hosted application sign in page. </p>
  
  <p>Please keep in mind the distinction between the application login page and the organization's tenant login page. There is ample documentation about how to brand the organization's tenant login page, but not the application login page. Consider the application flow to understand the difference:</p>
  
  <ol>
  <li><p>User goes to my app's login page, and chooses "Login with your existing organization account".</p>
  
  <p><a href="https://i.stack.imgur.com/VBaSQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VBaSQ.png" alt="enter image description here"></a></p></li>
  <li><p>The user is redirected to a Microsoft hosted login page <strong>for my application</strong>. At this point, Microsoft/Azure Ad only knows which application this is for; it doesn't yet know who is logging in or which tenant (organization) they belong to. <strong>This is the login page I need help branding</strong> (logo &amp; page background).</p>
  
  <p><a href="https://i.stack.imgur.com/4eStx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eStx.png" alt="enter image description here"></a></p></li>
  <li><p>After the user enters their email address (and even before they enter their password), the user is redirected to a different login page--the login page for the user's organization (i.e. their tenant). This page shows that organization's custom branding if it was setup. <em>This is not the login page I wish to brand; it is my customer's responsibility to brand their org if they desire</em>.</p>
  
  <p><a href="https://i.stack.imgur.com/rFskM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rFskM.png" alt="enter image description here"></a></p></li>
  <li><p>After the user enters their password on their organization's login page, the user submits the form. Azure then successfully authenticates them and redirects them back to my application where they are now authenticated as well.</p></li>
  </ol>
  
  <p>NOTE: this <em>should</em> be possible as you can see Microsoft is doing it on all of their cloud apps as well (Office 365, Visual Studio, Azure Portal)</p>
  
  <p><a href="https://i.stack.imgur.com/SoS39.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SoS39.png" alt="enter image description here"></a>
  <a href="https://i.stack.imgur.com/mTcYO.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mTcYO.png" alt="enter image description here"></a></p>
  
  <p>NOTE: this question was asked over 3 years ago, but only 1 misdirected answer was given, and Azure and Azure AD has changed drastically since then. See: <a href="https://stackoverflow.com/q/22312685/3037620">Azure Active Directory Custom Branded login page dont work with third party application</a>. Also, the Microsoft documentation only covers the branding of the tenant login page, not the application login page like I am seeking. See: <a href="https://docs.microsoft.com/en-us/azure/active-directory/active-directory-add-company-branding" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/azure/active-directory/active-directory-add-company-branding</a>.</p>