Skip to content

QA Added unit tests for HideBackOfficeTokensHandler#21067

Merged
Migaroez merged 6 commits intomainfrom
v17/task/http-vs-secure-cookies-tests
Dec 15, 2025
Merged

QA Added unit tests for HideBackOfficeTokensHandler#21067
Migaroez merged 6 commits intomainfrom
v17/task/http-vs-secure-cookies-tests

Conversation

@Migaroez
Copy link
Contributor

@Migaroez Migaroez commented Dec 4, 2025

Description

Adds tests for all the main handler methods in HideBackOfficeTokensHandler including the cookieprefix permutations introduced in #21056.

This pr is based on #21056 and should be merged in after that one to keep things tidy.

kjac and others added 2 commits December 4, 2025 09:13
The __Host- cookie prefix enforces secure cookies at browser level,
which caused cookies to be rejected when running over HTTP in local
development environments even when UseHttps was set to false.

Cookie names are now calculated per-request based on both the UseHttps
setting and whether the current request is over HTTPS, matching the
logic used for the Secure cookie option.
@kjac
Copy link
Contributor

kjac commented Dec 5, 2025

PR looks good. I left a few comments 😄

I'll refrain from approving until the first PR has been merged and has found its way into main (alternatively we can just change the target branch on this one).

Copy link
Contributor

@kjac kjac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@Migaroez Migaroez merged commit 906f8e4 into main Dec 15, 2025
25 of 26 checks passed
@Migaroez Migaroez deleted the v17/task/http-vs-secure-cookies-tests branch December 15, 2025 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants