umbraco / Umbraco-CMS

Umbraco is a free and open source .NET content management system helping you deliver delightful digital experiences.
https://umbraco.com
MIT License
4.41k stars 2.66k forks source link

Login redirect using incorrect domain from /umbraco/management/api/v1/security/back-office/authorize #16976

Open timlaughlin opened 2 weeks ago

timlaughlin commented 2 weeks ago

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

14.2

Bug summary

When running 14.2 in Azure behind an Azure Firewall that is also responsible for the SSL certificate and accessing the umbraco login page, /umbraco/management/api/v1/security/back-office/authorize is redirecting the user to the domain of the app service and not the host specified in either UmbracoApplicationUrl or BackOfficeHost.

Specifics

No response

Steps to reproduce

Deploy a clean install of 14.2 to an Azure Web App Service. Configure custom domain to point to an Azure Firewall and configure backend settings to point to the Web App Service. Login to umbraco using the custom domain/umbraco.

Expected result / actual result

The domain of the Azure Web App Service should not be used for any purpose in this scenario. The Azure Firewall in this configuration manages the SSL certificate and communicates with the web app service over port 80.

github-actions[bot] commented 2 weeks ago

Hi there @timlaughlin!

Firstly, a big thank you for raising this issue. Every piece of feedback we receive helps us to make Umbraco better.

We really appreciate your patience while we wait for our team to have a look at this but we wanted to let you know that we see this and share with you the plan for what comes next.

We wish we could work with everyone directly and assess your issue immediately but we're in the fortunate position of having lots of contributions to work with and only a few humans who are able to do it. We are making progress though and in the meantime, we will keep you in the loop and let you know when we have any questions.

Thanks, from your friendly Umbraco GitHub bot :robot: :slightly_smiling_face:

timlaughlin commented 2 weeks ago

Screenshot 2024-08-28 144628

The 302 redirect shown in the console is to the domain of the web app service and not the set domain of the site.