-
-
Notifications
You must be signed in to change notification settings - Fork 993
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
website: Use Docusaurus Frontmatter for badges #12893
Open
GirlBossRush
wants to merge
4
commits into
goauthentik:main
Choose a base branch
from
GirlBossRush:badge-frontmatter-tidy-v2
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
b565fd6
website/docs: Flesh out `support_level` frontmatter.
GirlBossRush 4d8383d
website: Fix JSX class name warning.
GirlBossRush 5be5246
website: Remove duplicate titles.
GirlBossRush a44def2
website/docs: Reduce redundant usage of badges. Move badge logic to
GirlBossRush File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,8 @@ | |
title: Flow Context | ||
--- | ||
|
||
import VersionBadge from "@site/src/components/VersionBadge"; | ||
|
||
Each flow execution has an independent _context_. This context holds all of the arbitrary data about that specific flow, data which can then be used and transformed by stages and policies. | ||
|
||
## Managing data in a flow context | ||
|
@@ -24,11 +26,11 @@ Keys prefixed with `goauthentik.io` are used internally by authentik and are sub | |
|
||
### Common keys | ||
|
||
#### `pending_user` ([User object](../../../../users-sources/user/user_ref.md#object-properties)) | ||
#### `pending_user` ([User object](../../../../users-sources/user/user_ref.mdx#object-properties)) | ||
|
||
`pending_user` is used by multiple stages. In the context of most flow executions, it represents the data of the user that is executing the flow. This value is not set automatically, it is set via the [Identification stage](../../stages/identification/index.md). | ||
`pending_user` is used by multiple stages. In the context of most flow executions, it represents the data of the user that is executing the flow. This value is not set automatically, it is set via the [Identification stage](../../stages/identification/index.mdx). | ||
|
||
Stages that require a user, such as the [Password stage](../../stages/password/index.md), the [Authenticator validation stage](../../stages/authenticator_validate/index.md) and others will use this value if it is set, and fallback to the request's users when possible. | ||
Stages that require a user, such as the [Password stage](../../stages/password/index.md), the [Authenticator validation stage](../../stages/authenticator_validate/index.mdx) and others will use this value if it is set, and fallback to the request's users when possible. | ||
|
||
#### `prompt_data` (Dictionary) | ||
|
||
|
@@ -62,7 +64,7 @@ When an unauthenticated user attempts to access a secured resource, they are red | |
|
||
When a user authenticates/enrolls via an external source, this will be set to the source they are using. | ||
|
||
#### `outpost` (dictionary) <span class="badge badge--version">authentik 2024.10+</span> | ||
#### `outpost` (dictionary) <VersionBadge semver="2024.10" /> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same with this, I'm assuming there's no simple way of doing this in a cleaner way without using |
||
|
||
When a flow is executed by an Outpost (for example the [LDAP](../../../providers/ldap/index.md) or [RADIUS](../../../providers/radius/index.mdx)), this will be set to a dictionary containing the Outpost instance under the key `"instance"`. | ||
|
||
|
@@ -76,7 +78,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) <span class="badge badge--version">authentik 2024.12+</span> | ||
#### `is_redirected` (Flow object) <VersionBadge semver="2024.12" /> | ||
|
||
This key is set when the current flow was reached through a [Redirect stage](../../stages/redirect/index.md) in Flow mode. | ||
|
||
|
@@ -98,7 +100,7 @@ URL that the form will be submitted to. | |
|
||
Key-value pairs of the data that is included in the form and will be submitted to `url`. | ||
|
||
#### Captcha stage <span class="badge badge--version">authentik 2024.6+</span> | ||
#### Captcha stage <VersionBadge semver="2024.6" /> | ||
|
||
##### `captcha` (dictionary) | ||
|
||
|
@@ -118,7 +120,7 @@ An optional list of all permissions that will be given to the application by gra | |
|
||
#### Deny stage | ||
|
||
##### `deny_message` (string) <span class="badge badge--version">authentik 2023.10+</span> | ||
##### `deny_message` (string) <VersionBadge semver="2023.10" /> | ||
|
||
Optionally overwrite the deny message shown, has a higher priority than the message configured in the stage. | ||
|
||
|
@@ -134,7 +136,7 @@ If set, this must be a list of group objects and not group names. | |
|
||
Path the `pending_user` will be written to. If not set in the flow, falls back to the value set in the user_write stage, and otherwise to the `users` path. | ||
|
||
##### `user_type` (string) <span class="badge badge--version">authentik 2023.10+</span> | ||
##### `user_type` (string) <VersionBadge semver="2023.10" /> | ||
|
||
Type the `pending_user` will be created as. Must be one of `internal`, `external` or `service_account`. | ||
|
||
|
@@ -146,7 +148,7 @@ Set by the [Password stage](../../stages/password/index.md) after successfully a | |
|
||
##### `auth_method` (string) | ||
|
||
Set by the [Password stage](../../stages/password/index.md), the [Authenticator validation stage](../../stages/authenticator_validate/index.md), the [OAuth2 Provider](../../../providers/oauth2/index.md), and the API authentication depending on which method was used to authenticate. | ||
Set by the [Password stage](../../stages/password/index.md), the [Authenticator validation stage](../../stages/authenticator_validate/index.mdx), the [OAuth2 Provider](../../../providers/oauth2/index.mdx), and the API authentication depending on which method was used to authenticate. | ||
|
||
Possible options: | ||
|
||
|
@@ -155,7 +157,7 @@ Possible options: | |
- `ldap` (Authenticated via LDAP bind from an LDAP source) | ||
- `auth_mfa` (Authentication via MFA device without password) | ||
- `auth_webauthn_pwl` (Passwordless authentication via WebAuthn) | ||
- `jwt` ([M2M](../../../providers/oauth2/client_credentials.md) authentication via an existing JWT) | ||
- `jwt` ([M2M](../../../providers/oauth2/client_credentials.mdx) authentication via an existing JWT) | ||
|
||
##### `auth_method_args` (dictionary) | ||
|
||
|
@@ -198,7 +200,7 @@ If _Show matched user_ is disabled, this key will be set to the user identifier | |
|
||
#### Redirect stage | ||
|
||
##### `redirect_stage_target` (string) <span class="badge badge--version">authentik 2024.12+</span> | ||
##### `redirect_stage_target` (string) <VersionBadge semver="2024.12" /> | ||
|
||
[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. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 1 addition & 4 deletions
5
website/docs/add-secure-apps/flows-stages/flow/executors/user-settings.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm assuming we can't easily do multiple badges without a wrapper?