plane/apps/api
Nikhil 3d06189723
[WEB-4943] refactor: enhance URL validation and redirection logic in authentication views (#7815)
* refactor: enhance URL validation and redirection logic in authentication views

* Updated authentication views (SignInAuthSpaceEndpoint, GitHubCallbackSpaceEndpoint, GitLabCallbackSpaceEndpoint, GoogleCallbackSpaceEndpoint, and MagicSignInSpaceEndpoint) to include url_has_allowed_host_and_scheme checks for safer redirection.
* Improved URL construction by ensuring proper formatting and fallback to base host when necessary.
* Added get_allowed_hosts function to path_validator.py for better host validation.

* refactor: improve comments and clean up code in path_validator.py

* Updated comments for clarity in the get_safe_redirect_url function.
* Removed unnecessary blank line to enhance
2025-09-17 16:13:32 +05:30
..
bin chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
plane [WEB-4943] refactor: enhance URL validation and redirection logic in authentication views (#7815) 2025-09-17 16:13:32 +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