Open martinthogersen opened 1 month ago
Hi there @martinthogersen!
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:
This code fixes the issue:
services.AddAuthorization(options =>
{
options.AddPolicy(AuthorizationPolicies.BackOfficeAccess, policy =>
{
policy.Requirements.Clear();
policy.AuthenticationSchemes.Add(Constants.Security.BackOfficeAuthenticationType);
policy.Requirements.Add(new BackOfficeRequirement());
});
});
Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)
14.3.1
Bug summary
In Umbraco 13, the code below enabled authenticated backoffice users to access the following URL directly:
/umbraco/backoffice/PreviouslyWorking/Example
However, in Umbraco 14, it's now required to include an HTTP Authorization header with a valid bearer token for the same access. This additional requirement shouldn't be necessary since the user's authentication status is already determined through the AuthCookieName value (default cookie name: "UMB_UCONTEXT").
Is it possible to restore the previous behavior so authenticated users can access
/umbraco/backoffice/PreviouslyWorking/Example
without needing to include an Authorization header?Here's the original controller code that worked in Umbraco 13:
And here's the composer setup, which configures routing for the controller:
Specifics
No response
Steps to reproduce
Set Up Umbraco 13:
Upgrade to Umbraco 14:
Expected result / actual result
No response