diff --git a/authentik/events/signals.py b/authentik/events/signals.py index be46da3d4..35f651e53 100644 --- a/authentik/events/signals.py +++ b/authentik/events/signals.py @@ -47,11 +47,11 @@ def on_user_logged_in(sender, request: HttpRequest, user: User, **_): flow_plan: FlowPlan = request.session[SESSION_KEY_PLAN] if PLAN_CONTEXT_SOURCE in flow_plan.context: # Login request came from an external source, save it in the context - thread.kwargs["using_source"] = flow_plan.context[PLAN_CONTEXT_SOURCE] + thread.kwargs[PLAN_CONTEXT_SOURCE] = flow_plan.context[PLAN_CONTEXT_SOURCE] if PLAN_CONTEXT_METHOD in flow_plan.context: - thread.kwargs["method"] = flow_plan.context[PLAN_CONTEXT_METHOD] + thread.kwargs[PLAN_CONTEXT_METHOD] = flow_plan.context[PLAN_CONTEXT_METHOD] # Save the login method used - thread.kwargs["method_args"] = flow_plan.context.get(PLAN_CONTEXT_METHOD_ARGS, {}) + thread.kwargs[PLAN_CONTEXT_METHOD_ARGS] = flow_plan.context.get(PLAN_CONTEXT_METHOD_ARGS, {}) thread.user = user thread.run() diff --git a/authentik/stages/password/stage.py b/authentik/stages/password/stage.py index aaef61618..646f68bdf 100644 --- a/authentik/stages/password/stage.py +++ b/authentik/stages/password/stage.py @@ -27,8 +27,8 @@ from authentik.stages.password.models import PasswordStage LOGGER = get_logger() PLAN_CONTEXT_AUTHENTICATION_BACKEND = "user_backend" -PLAN_CONTEXT_METHOD = "method" -PLAN_CONTEXT_METHOD_ARGS = "method_args" +PLAN_CONTEXT_METHOD = "auth_method" +PLAN_CONTEXT_METHOD_ARGS = "auth_method_args" SESSION_INVALID_TRIES = "user_invalid_tries" diff --git a/schema.yml b/schema.yml index 38587c822..421488100 100644 --- a/schema.yml +++ b/schema.yml @@ -20382,8 +20382,8 @@ components: - url BackendsEnum: enum: - - django.contrib.auth.backends.ModelBackend - - authentik.core.token_auth.TokenBackend + - authentik.core.auth.InbuiltBackend + - authentik.core.auth.TokenBackend - authentik.sources.ldap.auth.LDAPBackend type: string BindingTypeEnum: diff --git a/web/src/pages/stages/password/PasswordStageForm.ts b/web/src/pages/stages/password/PasswordStageForm.ts index dbe56340c..acbcebc10 100644 --- a/web/src/pages/stages/password/PasswordStageForm.ts +++ b/web/src/pages/stages/password/PasswordStageForm.ts @@ -76,25 +76,25 @@ export class PasswordStageForm extends ModelForm { >