goauthentik / goauthentik/authentik

Preserve the next redirect across flow hops

Open
#25,302 0 comments 2 reactions 0 assignees View on GitHub
area:backend enhancement enhancement/under_consideration
Dominant language
Python
Stars
25.6k
Forks
2k
Avg merge
1d 1h
Merged PRs (30d)
644

Description

## What

preserve the `next` redirect across flow hops (redirect stage, flow denial unwrap, and “Not you?”). Three surfaces, one user-visible bug.

## Want

- Preserve the `next` redirect across flow hops (redirect stage, flow denial unwrap,
- Three surfaces, one user-visible bug

## Ideas this came from

- [#17143 Option to include `next` URL parameter in redirect stages](https://github.com/goauthentik/authentik/issues/17143) — Problem: I want to use Authentik as a Oauth provider and I want to customize the UI. My approach to achieve this is to set up a flow with a single redirect stag
- [#17655 Flow executor does not respect "next" query parameter on flow denial due to query parameters being wrapped into "query"](https://github.com/goauthentik/authentik/issues/17655) — This is a continuation from #10333 The flow executor does not correctly unwrap the wrapped query parameters before handling the invalid flow in https://github.c
- [#25055 Clicking “Not you?” loses the pending next redirect](https://github.com/goauthentik/authentik/issues/25055) — When a user is already signed in to authentik but does not have access to an application, clicking “Not you?” and signing in as another user loses the original

Contributor guide

Open the contributing guide

Research direction

Start by reading the three related issues (#17143, #17655, and #25055), then trace the redirect stage, flow-denial unwrap, and “Not you?” flow hops. Done means the pending `next` redirect survives each of those three surfaces without being lost.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.