Skip to content

Commit

Permalink
*: fix stage incorrectly being inserted instead of appended
Browse files Browse the repository at this point in the history
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
  • Loading branch information
BeryJu committed Feb 27, 2025
1 parent 2c802ca commit d042589
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion authentik/core/views/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def dispatch(self, request: HttpRequest, application_slug: str) -> HttpResponse:
)
except FlowNonApplicableException:
raise Http404 from None
plan.insert_stage(in_memory_stage(RedirectToAppStage))
plan.append_stage(in_memory_stage(RedirectToAppStage))
return plan.to_redirect(request, flow)


Expand Down
2 changes: 1 addition & 1 deletion authentik/providers/oauth2/views/device_init.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get(self, request: HttpRequest, *args, **kwargs):
except FlowNonApplicableException:
LOGGER.warning("Flow not applicable to user")
return None
plan.insert_stage(in_memory_stage(OAuthDeviceCodeFinishStage))
plan.append_stage(in_memory_stage(OAuthDeviceCodeFinishStage))

Check warning on line 74 in authentik/providers/oauth2/views/device_init.py

View check run for this annotation

Codecov / codecov/patch

authentik/providers/oauth2/views/device_init.py#L74

Added line #L74 was not covered by tests
return plan.to_redirect(self.request, self.token.provider.authorization_flow)


Expand Down
2 changes: 1 addition & 1 deletion authentik/providers/oauth2/views/end_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,5 @@ def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
PLAN_CONTEXT_APPLICATION: self.application,
},
)
plan.insert_stage(in_memory_stage(SessionEndStage))
plan.append_stage(in_memory_stage(SessionEndStage))
return plan.to_redirect(self.request, self.flow)
2 changes: 1 addition & 1 deletion authentik/providers/rac/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get(self, request: HttpRequest, *args, **kwargs) -> HttpResponse:
)
except FlowNonApplicableException:
raise Http404 from None
plan.insert_stage(
plan.append_stage(
in_memory_stage(
RACFinalStage,
application=self.application,
Expand Down
2 changes: 1 addition & 1 deletion authentik/providers/saml/views/slo.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def get(self, request: HttpRequest, application_slug: str) -> HttpResponse:
PLAN_CONTEXT_APPLICATION: self.application,
},
)
plan.insert_stage(in_memory_stage(SessionEndStage))
plan.append_stage(in_memory_stage(SessionEndStage))
return plan.to_redirect(self.request, self.flow)

def post(self, request: HttpRequest, application_slug: str) -> HttpResponse:
Expand Down

0 comments on commit d042589

Please sign in to comment.