bruno/packages/bruno-electron
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
..
resources Update MacOS icon 2023-11-26 20:06:34 +00:00
src fix: Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters (#2148) 2024-05-31 15:41:31 +05:30
tests fix: Check OAuth2 redirect URL for matching callback URL and authorization code in query parameters (#2148) 2024-05-31 15:41:31 +05:30
.env.sample feat(#BRU-31): notifications feature draft (#1730) 2024-03-11 17:48:52 +05:30
.gitignore chore: add dist folder to .gitignore 2023-10-11 17:58:10 -03:00
electron-builder-config.js Merge branch 'main' into feature/rpm-build 2023-10-12 02:41:58 -03:00
notarize.js chore: electron notarization for mac 2023-09-13 18:09:59 +05:30
package.json fix(#2367): handle response body decode (#2371) 2024-05-30 23:24:04 +05:30
readme.md feat: windows codesigning 2023-02-26 17:22:30 +05:30

bruno-electron

# electron dev
npm start

# generate pfx file for signing windows build
openssl pkcs12 -export -inkey sectigo.key -in sectigo.pem -out sectigo.pfx