From d2bbcc0e1efcef7c6fd82a88da2930b6886f83c2 Mon Sep 17 00:00:00 2001 From: sdimovv <36302090+sdimovv@users.noreply.github.com> Date: Mon, 14 Nov 2022 08:54:25 +0000 Subject: [PATCH] website/docs: Fix small error in Invitation stage docs (#3997) The `.get` is there to ensure the policy won't throw an error if the key is not there (which can happen if the policy is executed before an Invitation stage). Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com> Signed-off-by: sdimovv <36302090+sdimovv@users.noreply.github.com> --- website/docs/flow/stages/invitation/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/flow/stages/invitation/index.md b/website/docs/flow/stages/invitation/index.md index 1969ee4a0..c557a3b40 100644 --- a/website/docs/flow/stages/invitation/index.md +++ b/website/docs/flow/stages/invitation/index.md @@ -6,7 +6,7 @@ This stage can be used to invite users. You can use this to enroll users with pr If the option `Continue Flow without Invitation` is enabled, this stage will continue even when no invitation token is present. -To check if a user has used an invitation within a policy, you can check `request.context.invitation_in_effect`. +To check if a user has used an invitation within a policy, you can check `request.context.get("invitation_in_effect", False)`. To use an invitation, use the URL `https://authentik.tld/if/flow/your-enrollment-flow/?itoken=invitation-token`.