bb-plane-fork/apps/api
Nikhil 4d17637edf
[WEB-4943] refactor: streamline URL construction in authentication views (#7806)
* refactor: streamline URL construction in authentication views

* Updated MagicSignInSpaceEndpoint and MagicSignUpSpaceEndpoint to directly construct redirect URLs using formatted strings instead of the get_safe_redirect_url function.
* Enhanced get_safe_redirect_url to use quote for safer URL encoding of parameters.

* refactor: enhance URL validation and redirection in authentication views

* Added validate_next_path function to improve the safety of redirect URLs in MagicSignInSpaceEndpoint and MagicSignUpSpaceEndpoint.
* Updated URL construction to ensure proper handling of next_path and base_url.
* Streamlined the get_safe_redirect_url function for better parameter encoding.

* refactor: unify URL redirection logic across authentication views

* Introduced validate_next_path function to enhance URL safety in SignInAuthSpaceEndpoint, SignUpAuthSpaceEndpoint, GitHubCallbackSpaceEndpoint, GitLabCallbackSpaceEndpoint, and GoogleCallbackSpaceEndpoint.
* Updated URL construction to directly format the redirect URL, improving clarity and consistency across multiple authentication views.
2025-09-16 18:44:26 +05:30
..
bin chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
plane [WEB-4943] refactor: streamline URL construction in authentication views (#7806) 2025-09-16 18:44:26 +05:30
requirements chore (deps): django and vite version bump 2025-09-10 13:38:30 +05:30
templates [WEB-4488] feat: brand revamp (#7544) 2025-08-06 22:24:47 +05:30
.coveragerc chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
.env.example [INFRA-209] Remove nginx related configurations from plane community (#7406) 2025-07-14 16:38:27 +05:30
Dockerfile.api chore: updated node version to 22 and python version to 3.12.10 (#7343) 2025-07-04 16:28:30 +05:30
Dockerfile.dev chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
manage.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
package.json chore: version bump 2025-09-01 19:38:21 +05:30
pyproject.toml chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
pytest.ini chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
requirements.txt chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
run_tests.py chore: format files using prettier (#7364) 2025-07-08 20:41:11 +05:30
run_tests.sh chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30