bruno/packages/bruno-electron/tests
Dakshin K 46df2e967f
fix: Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters (#2148)
* Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters

In an Authorization code flow, there may be multiple intermediate redirects before reaching the final one which matches the callback URL and has a code in the query params.

We should wait until we see a redirect URI that matches both the conditions. This fixes the issue where, when a redirect contains `code` as a query param but is not the final one (i.e., is not to the callback URL) an error is thrown saying the callback URL is invalid.

Fixes #2147

* Add test cases for callback URL check

* Update check to cover URLs with same host but different endpoints
2024-05-31 15:41:31 +05:30
..
network fix: Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters (#2148) 2024-05-31 15:41:31 +05:30
utils chore: fix tests 2024-02-27 01:43:36 +05:30