Files
authentik/website/docs/customize/policies/expression/managing_flow_context_keys.md
Teffen Ellis a714c781a6 website: Use Docusaurus Frontmatter for badges (#12893)
website/docs: Reduce redundant usage of badges. Move badge logic to components.

- Fix JSX class name warning.
- Remove duplicate titles.
- Flesh out `support_level` frontmatter.
2025-02-19 18:03:05 +00:00

527 B

title
title
Managing flow context keys

Flow context can be managed in Expression policies via the context['flow_plan'].context variable.

Here's an example of setting a key in an Expression policy:

context['flow_plan'].context['redirect_stage_target'] = 'ak-flow://redirected-authentication-flow'

And here's an example of removing that key:

context['flow_plan'].context.pop('redirect_stage_target', None)