bb-plane-fork/apps/api/plane/utils
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
..
core [WEB-4533] feat: read replica functionality (#7453) 2025-07-28 17:41:02 +05:30
openapi [WEB-4045] feat: restructuring of the external APIs for better maintainability (#7477) 2025-07-25 00:17:05 +05:30
__init__.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
analytics_plot.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
build_chart.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
cache.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
color.py [WEB-4566] feat: add background color and goals field to Profile and Workspace models #7485 2025-07-27 21:10:31 +05:30
constants.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
content_validator.py chore: added attributes in ol tag (#7736) 2025-09-08 17:17:38 +05:30
date_utils.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
error_codes.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
exception_logger.py [WEB-4380] chore: work item link sentry error (#7316) 2025-07-08 15:43:42 +05:30
global_paginator.py chore: format files using prettier (#7364) 2025-07-08 20:41:11 +05:30
grouper.py [WEB-4129] fix: work item filter assignees missing fields #7698 2025-09-03 18:36:04 +05:30
host.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
html_processor.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
imports.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
ip_address.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
issue_filters.py [WEB-4875] fix: unsubscribed work items on workspace subscribed work item filter #7775 2025-09-11 17:52:51 +05:30
issue_relation_mapper.py [WIKI-659] chore: added issue relation and page sort order (#7784) 2025-09-15 18:36:00 +05:30
issue_search.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
logging.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
markdown.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
order_queryset.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
paginator.py [WEB-4430] fix: incorrect WI count while scrolling (#7596) 2025-08-20 18:54:32 +05:30
path_validator.py [WEB-4943] refactor: streamline URL construction in authentication views (#7806) 2025-09-16 18:44:26 +05:30
telemetry.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
timezone_converter.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
url.py [WEB-4452] fix: enhance URL detection logic in contains_url function (#7352) 2025-07-08 18:28:47 +05:30
uuid.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30