bb-plane-fork/apps/api/plane/authentication
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
..
adapter chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
middleware chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
provider [WEB-4045] feat: restructuring of the external APIs for better maintainability (#7477) 2025-07-25 00:17:05 +05:30
utils chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
views [WEB-4943] refactor: streamline URL construction in authentication views (#7806) 2025-09-16 18:44:26 +05:30
__init__.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
apps.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
rate_limit.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
session.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30
urls.py chore: rename server to api (#7342) 2025-07-04 15:32:21 +05:30