We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d83daf4 commit 1bc5466Copy full SHA for 1bc5466
src/Umbraco.Web.Common/Extensions/HttpContextExtensions.cs
@@ -59,6 +59,14 @@ public static async Task<AuthenticateResult> AuthenticateBackOfficeAsync(this Ht
59
await httpContext.AuthenticateAsync(Constants.Security.BackOfficeExternalAuthenticationType);
60
}
61
62
+ // Update the HttpContext's user with the authenticated user's principal to ensure
63
+ // that subsequent requests within the same context will recognize the user
64
+ // as authenticated.
65
+ if (result.Succeeded)
66
+ {
67
+ httpContext.User = result.Principal;
68
+ }
69
+
70
return result;
71
72
0 commit comments