Skip to content

Commit

Permalink
Fix the typing
Browse files Browse the repository at this point in the history
  • Loading branch information
henryh9n committed Nov 8, 2024
1 parent 596c6a6 commit 9113534
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions django_saml2_auth/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,10 @@ def acs(request: HttpRequest):
query = f"?token={jwt_token}"

# Use JWT auth to send token to frontend
frontend_url = dictor(saml2_auth_settings, "FRONTEND_URL", next_url)
custom_frontend_url_trigger = dictor(saml2_auth_settings, "TRIGGER.GET_CUSTOM_FRONTEND_URL")
if custom_frontend_url_trigger:
frontend_url = run_hook(custom_frontend_url_trigger, relay_state)
else:
frontend_url = dictor(saml2_auth_settings, "FRONTEND_URL", next_url)
frontend_url = run_hook(custom_frontend_url_trigger, relay_state) # type: ignore

return HttpResponseRedirect(frontend_url + query)

Expand Down

0 comments on commit 9113534

Please sign in to comment.