From 11e708a45a78704c8a1134e951f9056135f5fcb3 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 24 Aug 2024 16:00:08 +0200 Subject: [PATCH] inconsistent naming Signed-off-by: Jens Langhammer --- authentik/enterprise/providers/rac/views.py | 4 ++-- authentik/flows/planner.py | 4 ++-- authentik/flows/stage.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/authentik/enterprise/providers/rac/views.py b/authentik/enterprise/providers/rac/views.py index 492a2715d7..4f92d8c6fa 100644 --- a/authentik/enterprise/providers/rac/views.py +++ b/authentik/enterprise/providers/rac/views.py @@ -17,7 +17,7 @@ from authentik.flows.challenge import RedirectChallenge from authentik.flows.exceptions import FlowNonApplicableException from authentik.flows.models import in_memory_stage from authentik.flows.planner import PLAN_CONTEXT_APPLICATION, FlowPlanner -from authentik.flows.stage import RedirectStage +from authentik.flows.stage import RedirectStageChallengeView from authentik.flows.views.executor import SESSION_KEY_PLAN from authentik.lib.utils.time import timedelta_from_string from authentik.lib.utils.urls import redirect_with_qs @@ -83,7 +83,7 @@ class RACInterface(InterfaceView): return super().get_context_data(**kwargs) -class RACFinalStage(RedirectStage): +class RACFinalStage(RedirectStageChallengeView): """RAC Connection final stage, set the connection token in the stage""" endpoint: Endpoint diff --git a/authentik/flows/planner.py b/authentik/flows/planner.py index 2c7231669e..884766f347 100644 --- a/authentik/flows/planner.py +++ b/authentik/flows/planner.py @@ -74,9 +74,9 @@ class FlowPlan: def redirect(self, destination: str): """Insert a redirect stage as next stage""" - from authentik.flows.stage import RedirectStage + from authentik.flows.stage import RedirectStageChallengeView - self.insert_stage(in_memory_stage(RedirectStage, destination=destination)) + self.insert_stage(in_memory_stage(RedirectStageChallengeView, destination=destination)) def next(self, http_request: HttpRequest | None) -> FlowStageBinding | None: """Return next pending stage from the bottom of the list""" diff --git a/authentik/flows/stage.py b/authentik/flows/stage.py index beb1e949e9..b6b9d88344 100644 --- a/authentik/flows/stage.py +++ b/authentik/flows/stage.py @@ -255,7 +255,7 @@ class AccessDeniedChallengeView(ChallengeStageView): return self.executor.cancel() -class RedirectStage(ChallengeStageView): +class RedirectStageChallengeView(ChallengeStageView): """Redirect to any URL""" def get_challenge(self, *args, **kwargs) -> RedirectChallenge: