inconsistent naming
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
		@ -17,7 +17,7 @@ from authentik.flows.challenge import RedirectChallenge
 | 
				
			|||||||
from authentik.flows.exceptions import FlowNonApplicableException
 | 
					from authentik.flows.exceptions import FlowNonApplicableException
 | 
				
			||||||
from authentik.flows.models import in_memory_stage
 | 
					from authentik.flows.models import in_memory_stage
 | 
				
			||||||
from authentik.flows.planner import PLAN_CONTEXT_APPLICATION, FlowPlanner
 | 
					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.flows.views.executor import SESSION_KEY_PLAN
 | 
				
			||||||
from authentik.lib.utils.time import timedelta_from_string
 | 
					from authentik.lib.utils.time import timedelta_from_string
 | 
				
			||||||
from authentik.lib.utils.urls import redirect_with_qs
 | 
					from authentik.lib.utils.urls import redirect_with_qs
 | 
				
			||||||
@ -83,7 +83,7 @@ class RACInterface(InterfaceView):
 | 
				
			|||||||
        return super().get_context_data(**kwargs)
 | 
					        return super().get_context_data(**kwargs)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class RACFinalStage(RedirectStage):
 | 
					class RACFinalStage(RedirectStageChallengeView):
 | 
				
			||||||
    """RAC Connection final stage, set the connection token in the stage"""
 | 
					    """RAC Connection final stage, set the connection token in the stage"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    endpoint: Endpoint
 | 
					    endpoint: Endpoint
 | 
				
			||||||
 | 
				
			|||||||
@ -74,9 +74,9 @@ class FlowPlan:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    def redirect(self, destination: str):
 | 
					    def redirect(self, destination: str):
 | 
				
			||||||
        """Insert a redirect stage as next stage"""
 | 
					        """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:
 | 
					    def next(self, http_request: HttpRequest | None) -> FlowStageBinding | None:
 | 
				
			||||||
        """Return next pending stage from the bottom of the list"""
 | 
					        """Return next pending stage from the bottom of the list"""
 | 
				
			||||||
 | 
				
			|||||||
@ -255,7 +255,7 @@ class AccessDeniedChallengeView(ChallengeStageView):
 | 
				
			|||||||
        return self.executor.cancel()
 | 
					        return self.executor.cancel()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class RedirectStage(ChallengeStageView):
 | 
					class RedirectStageChallengeView(ChallengeStageView):
 | 
				
			||||||
    """Redirect to any URL"""
 | 
					    """Redirect to any URL"""
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def get_challenge(self, *args, **kwargs) -> RedirectChallenge:
 | 
					    def get_challenge(self, *args, **kwargs) -> RedirectChallenge:
 | 
				
			||||||
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user