Skip to content

flows: strip login_hint from next on cancel to prevent loop (cherry-pick #26111 to version-2026.8) - #26168

Merged
BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26111-to-version-2026.8
Sep 15, 2026
Merged

BeryJu merged 1 commit into
version-2026.8from
cherry-pick/26111-to-version-2026.8

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

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

Original PR: #26111
Original Author: @Jorge-Polanco-Roque
Cherry-picked commit: 0e9a19a

* flows: clear login_hint on cancel to fix 'Not You?' loop

When a login_hint is passed to the OAuth2 authorize endpoint, it is prefilled
into the identification stage and also carried in the flow's `next` param. On
clicking 'Not You?', CancelView redirected back to `next`, which re-entered the
authorize flow and re-applied login_hint from the URL, trapping the user in a
loop.

Strip login_hint from the cancel `next` redirect so re-entering the flow no
longer re-prefills the identifier, while legitimate first-arrival prefill (read
directly from the authorize URL) is unaffected.

Fixes #25476

* cleanup

Signed-off-by: Jens Langhammer <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
@netlify

netlify Bot commented Sep 15, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 506eb14
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6aa925bb3fc1e8000806617a
😎 Deploy Preview https://deploy-preview-26168--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 Sep 15, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 506eb14
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6aa925bbdee55c000944e722
😎 Deploy Preview https://deploy-preview-26168--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 Sep 15, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.83%. Comparing base (3447ccf) to head (506eb14).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@               Coverage Diff               @@
##           version-2026.8   #26168   +/-   ##
===============================================
  Coverage           91.82%   91.83%           
===============================================
  Files                1160     1160           
  Lines               74692    74718   +26     
  Branches             4056     4056           
===============================================
+ Hits                68587    68618   +31     
+ Misses               6063     6058    -5     
  Partials               42       42           
Flag Coverage Δ
conformance 33.85% <10.71%> (-0.01%) ⬇️
e2e 38.50% <10.71%> (-0.01%) ⬇️
integration 30.50% <10.71%> (-0.01%) ⬇️
rust 42.89% <ø> (ø)
unit 93.39% <100.00%> (+<0.01%) ⬆️
unit-migrate 93.41% <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

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-506eb147e76bf596304f634076835867c5d1de59
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-506eb147e76bf596304f634076835867c5d1de59

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

@BeryJu
BeryJu merged commit d01019a into version-2026.8 Sep 15, 2026
138 checks passed
@BeryJu
BeryJu deleted the cherry-pick/26111-to-version-2026.8 branch September 15, 2026 13:49
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