website/docs: add 2024.12+ badge to redirect stage features (#12346)

add `2024.12+` badge to redirect stage features
This commit is contained in:
Simonyi Gergő
2024-12-13 02:11:29 +01:00
committed by GitHub
parent 9a5effae2c
commit 4b5e66f9eb
2 changed files with 7 additions and 3 deletions

View File

@ -76,7 +76,7 @@ This key is set to `True` when the flow is executed from an "SSO" context. For e
This key is set when a flow execution is continued from a token. This happens for example when an [Email stage](../../stages/email/index.mdx) is used and the user clicks on the link within the email. The token object contains the key that was used to restore the flow execution.
#### `is_redirected` (Flow object)
#### `is_redirected` (Flow object) <span class="badge badge--version">authentik 2024.12+</span>
This key is set when the current flow was reached through a [Redirect stage](../../stages/redirect/index.md) in Flow mode.
@ -198,7 +198,7 @@ If _Show matched user_ is disabled, this key will be set to the user identifier
#### Redirect stage
##### `redirect_stage_target` (string)
##### `redirect_stage_target` (string) <span class="badge badge--version">authentik 2024.12+</span>
[Set this key](../../../../customize/policies/expression/managing_flow_context_keys.md) in an Expression Policy to override [Redirect stage](../../stages/redirect/index.md) to force it to redirect to a certain URL or flow. This is useful when a flow requires that the redirection target be decided dynamically.

View File

@ -2,6 +2,10 @@
title: Redirect stage
---
<span class="badge badge--version">authentik 2024.12+</span>
---
This stage's main purpose is to redirect the user to a new Flow while keeping flow context. For convenience, it can also redirect the user to a static URL.
## Redirect stage modes
@ -14,4 +18,4 @@ When the user reaches this stage, they are redirected to a static URL.
When the user reaches this stage, they are redirected to a specified flow, retaining all [flow context](../../flow/context).
Optionally, untoggle the "Keep flow context" switch. If this is untoggled, all flow context is cleared with the exception of the [is_redirected](../../flow/context#is_redirected-flow-object) key.
Optionally, untoggle the "Keep flow context" switch. If this is untoggled, all flow context is cleared with the exception of the [is_redirected](../../flow/context#is_redirected-flow-object-authentik-202412) key.