Skip to content

web/flow: fix SessionEnd not using brand title - #27636

Merged
BeryJu merged 1 commit into
mainfrom
web/flow/fix-sessionend-authentik-hardcoded
Nov 23, 2026
Merged

BeryJu merged 1 commit into
mainfrom
web/flow/fix-sessionend-authentik-hardcoded

Conversation

@BeryJu

@BeryJu BeryJu commented Nov 5, 2026

Copy link
Copy Markdown
Member

closes #27582

@BeryJu
BeryJu requested a review from a team as a code owner November 5, 2026 17:21
@netlify

netlify Bot commented Nov 5, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit f0e8e21
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6aecbb0a82a43d02c44b0258
😎 Deploy Preview https://deploy-preview-27636--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@BeryJu BeryJu added area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Nov 5, 2026
@codecov

codecov Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5070 1 5069 22
View the top 1 failed test(s) by shortest run time
authentik.blueprints.tests.test_v1.TestBlueprintsV1::test_export_default_blueprints_no_static_identifiers
Stack Traces | 10.2s run time
self = <unittest.case._Outcome object at 0x75264b51b770>
test_case = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>
subTest = False

    @contextlib.contextmanager
    def testPartExecutor(self, test_case, subTest=False):
        old_success = self.success
        self.success = True
        try:
>           yield

.../hostedtoolcache/Python/3.14.10.............../x64/lib/python3.14/unittest/case.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>
result = <TestCaseFunction test_export_default_blueprints_no_static_identifiers>

    def run(self, result=None):
        if result is None:
            result = self.defaultTestResult()
            startTestRun = getattr(result, 'startTestRun', None)
            stopTestRun = getattr(result, 'stopTestRun', None)
            if startTestRun is not None:
                startTestRun()
        else:
            stopTestRun = None
    
        result.startTest(self)
        try:
            testMethod = getattr(self, self._testMethodName)
            if (getattr(self.__class__, "__unittest_skip__", False) or
                getattr(testMethod, "__unittest_skip__", False)):
                # If the class or method was skipped.
                skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
                            or getattr(testMethod, '__unittest_skip_why__', ''))
                _addSkip(result, self, skip_why)
                return result
    
            expecting_failure = (
                getattr(self, "__unittest_expecting_failure__", False) or
                getattr(testMethod, "__unittest_expecting_failure__", False)
            )
            outcome = _Outcome(result)
            start_time = time.perf_counter()
            try:
                self._outcome = outcome
    
                with outcome.testPartExecutor(self):
                    self._callSetUp()
                if outcome.success:
                    outcome.expecting_failure = expecting_failure
                    with outcome.testPartExecutor(self):
>                       self._callTestMethod(testMethod)

.../hostedtoolcache/Python/3.14.10.............../x64/lib/python3.14/unittest/case.py:669: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>
method = <bound method TestBlueprintsV1.test_export_default_blueprints_no_static_identifiers of <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>>

    def _callTestMethod(self, method):
>       result = method()
                 ^^^^^^^^

.../hostedtoolcache/Python/3.14.10.............../x64/lib/python3.14/unittest/case.py:615: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>

    def test_export_default_blueprints_no_static_identifiers(self):
        """Test that exporting a full instance after applying all default blueprints
        never falls back to an opaque, non-portable `pk` identifier, e.g. for models
        such as FlowStageBinding that have no unique text field of their own"""
        for blueprint_file in sorted(Path("blueprints/default").glob("*.yaml")):
            rel_path = str(blueprint_file.relative_to("blueprints"))
            importer = Importer.from_string(BlueprintInstance(path=rel_path).retrieve())
            self.assertTrue(importer.validate()[0])
            self.assertTrue(importer.apply())
    
        export = Exporter().export()
        for entry in export.entries:
>           self.assertNotIn(
                "pk", entry.identifiers, f"{entry.model} entry has a static pk identifier"
            )

.../blueprints/tests/test_v1.py:434: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>
member = 'pk', container = {'pk': UUID('46b38f41-6a3c-4e1b-9a36-ad2ee5d9527d')}
msg = 'authentik_tasks_schedules.schedule entry has a static pk identifier'

    def assertNotIn(self, member, container, msg=None):
        """Just like self.assertTrue(a not in b), but with a nicer default message."""
        if member in container:
            standardMsg = '%s unexpectedly found in %s' % (safe_repr(member),
                                                        safe_repr(container))
>           self.fail(self._formatMessage(msg, standardMsg))

.../hostedtoolcache/Python/3.14.10.............../x64/lib/python3.14/unittest/case.py:1199: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.blueprints.tests.test_v1.TestBlueprintsV1 testMethod=test_export_default_blueprints_no_static_identifiers>
msg = "'pk' unexpectedly found in {'pk': UUID('46b38f41-6a3c-4e1b-9a36-ad2ee5d9527d')} : authentik_tasks_schedules.schedule entry has a static pk identifier"

    def fail(self, msg=None):
        """Fail immediately, with the given message."""
>       raise self.failureException(msg)
E       AssertionError: 'pk' unexpectedly found in {'pk': UUID('46b38f41-6a3c-4e1b-9a36-ad2ee5d9527d')} : authentik_tasks_schedules.schedule entry has a static pk identifier

.../hostedtoolcache/Python/3.14.10.............../x64/lib/python3.14/unittest/case.py:750: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 42073782279 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

@BeryJu
BeryJu merged commit c74793c into main Nov 23, 2026
163 of 166 checks passed
@BeryJu
BeryJu deleted the web/flow/fix-sessionend-authentik-hardcoded branch November 23, 2026 11:43
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #27995

BeryJu added a commit that referenced this pull request Nov 23, 2026
… version-2026.8) (#27995)

web/flow: fix SessionEnd not using brand title (#27636)

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens L. <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use the configured brand name or allow custom logout completion messages

2 participants