Skip to content

flows: keep next on the access denied page's cancel link (cherry-pick #27364 to version-2026.8) - #27698

Merged
dominic-r merged 2 commits into
version-2026.8from
cherry-pick/27364-to-version-2026.8
Nov 23, 2026
Merged

dominic-r merged 2 commits into
version-2026.8from
cherry-pick/27364-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #27364 to version-2026.8 branch.

Original PR: #27364
Original Author: @dominic-r
Cherry-picked commit: f145b3b

* flows: keep next on the access denied page's cancel link

stage_invalid() cancelled the flow before building the access denied
challenge, and cancelling clears the stored query, so the page's cancel
link lost `next` and fell back to the bare cancel URL. "Go back" and
"Not you?" then ran the invalidation flow and logged the user out
instead of restarting with the original request, such as an OAuth2
authorize URL.

* flows: render the access denied challenge before cancelling the flow

Building the cancel URL in AccessDeniedStage's constructor read the
session from a request that callers set after construction, so a stage
view built without one, as the generic stage view tests do, crashed.
Render the challenge before cancel() instead, which keeps `next` on the
cancel link without the stage needing to know about the ordering.

---------

Co-authored-by: Jens L. <[email protected]>
@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit cbe8cd4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6b046eefeea0dbb35de6417a
😎 Deploy Preview https://deploy-preview-27698--authentik-storybook.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.

@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit cbe8cd4
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6b046ef06f4705b8adc544d9
😎 Deploy Preview https://deploy-preview-27698--authentik-integrations.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.

@codecov

codecov Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.25%. Comparing base (17a9987) to head (cbe8cd4).
⚠️ Report is 1 commits behind head on version-2026.8.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##           version-2026.8   #27698   +/-   ##
===============================================
  Coverage           92.25%   92.25%           
===============================================
  Files                1168     1168           
  Lines               76341    76351   +10     
  Branches             4187     4187           
===============================================
+ Hits                70426    70438   +12     
+ Misses               5849     5847    -2     
  Partials               66       66           
Flag Coverage Δ
conformance 33.29% <0.00%> (-0.01%) ⬇️
e2e 37.87% <25.00%> (-0.01%) ⬇️
integration 29.99% <0.00%> (-0.01%) ⬇️
rust 47.26% <ø> (ø)
unit 93.66% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.67% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

@github-actions

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-cbe8cd484ecc9a5c9b3a18941348343c63b40955
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-cbe8cd484ecc9a5c9b3a18941348343c63b40955

Afterwards, run the upgrade commands from the latest release notes.

@dominic-r
dominic-r enabled auto-merge (squash) November 23, 2026 16:51
@GirlBossRush
GirlBossRush requested a review from jsachs November 23, 2026 17:02
@dominic-r
dominic-r merged commit e805c5a into version-2026.8 Nov 23, 2026
137 checks passed
@dominic-r
dominic-r deleted the cherry-pick/27364-to-version-2026.8 branch November 23, 2026 17:19
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.

2 participants