fix: Remove auto-login from enrollment flow to avoid redirect issue
- Removed user login stage from enrollment flow - Users now see completion page instead of being auto-logged in - Prevents redirect to /if/user/ which requires internal user permissions - Users can manually go to Nextcloud and log in with OIDC after registration 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
22e526d56b
commit
508825ca5a
1 changed files with 2 additions and 19 deletions
|
|
@ -12,6 +12,7 @@ entries:
|
||||||
name: Default enrollment Flow
|
name: Default enrollment Flow
|
||||||
title: Welcome to authentik!
|
title: Welcome to authentik!
|
||||||
authentication: none
|
authentication: none
|
||||||
|
denied_action: message_continue
|
||||||
identifiers:
|
identifiers:
|
||||||
slug: default-enrollment-flow
|
slug: default-enrollment-flow
|
||||||
model: authentik_flows.flow
|
model: authentik_flows.flow
|
||||||
|
|
@ -116,15 +117,7 @@ entries:
|
||||||
id: user-write-stage
|
id: user-write-stage
|
||||||
model: authentik_stages_user_write.userwritestage
|
model: authentik_stages_user_write.userwritestage
|
||||||
|
|
||||||
# 6. CREATE USER LOGIN STAGE
|
# 6. BIND INVITATION STAGE TO FLOW (order 0)
|
||||||
- attrs:
|
|
||||||
session_duration: seconds=0
|
|
||||||
identifiers:
|
|
||||||
name: default-enrollment-user-login
|
|
||||||
id: user-login-stage
|
|
||||||
model: authentik_stages_user_login.userloginstage
|
|
||||||
|
|
||||||
# 7. BIND INVITATION STAGE TO FLOW (order 0)
|
|
||||||
- attrs:
|
- attrs:
|
||||||
evaluate_on_plan: true
|
evaluate_on_plan: true
|
||||||
re_evaluate_policies: false
|
re_evaluate_policies: false
|
||||||
|
|
@ -153,13 +146,3 @@ entries:
|
||||||
stage: !KeyOf user-write-stage
|
stage: !KeyOf user-write-stage
|
||||||
target: !KeyOf flow
|
target: !KeyOf flow
|
||||||
model: authentik_flows.flowstagebinding
|
model: authentik_flows.flowstagebinding
|
||||||
|
|
||||||
# 10. BIND USER LOGIN STAGE TO FLOW (order 30)
|
|
||||||
- attrs:
|
|
||||||
evaluate_on_plan: true
|
|
||||||
re_evaluate_policies: false
|
|
||||||
identifiers:
|
|
||||||
order: 30
|
|
||||||
stage: !KeyOf user-login-stage
|
|
||||||
target: !KeyOf flow
|
|
||||||
model: authentik_flows.flowstagebinding
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue