Commit Graph

76 Commits

Author SHA1 Message Date
Gregory Schier
07cc38f003 Don't rely on Curl for multipart/form-data (#513)
* Playing around but nothing working

* Got it working!

* Move multipart logic to own file
2017-10-11 23:43:21 +02:00
Gregory Schier
05db836890 Specify HTTP method when signing AWS requests (Fixes #509) 2017-10-10 10:58:13 +02:00
Gregory Schier
3908da67b6 More robust certificate check (Fixes #452) (#502) 2017-10-05 15:11:22 +02:00
Gregory Schier
f76e382387 Revamp Keyboard Shortcuts (#487)
* More shortcuts and accessibility tweaks

* Use hotkey objects everywhere

* A few last-minute tweaks
2017-09-17 16:04:56 +02:00
Gregory Schier
a20ea65c4c Async model migrations 2017-09-13 08:11:49 +02:00
Gregory Schier
6ee8576d6b Use INFILESIZE_LARGE to prevent overflow (Fixes #464) 2017-09-09 12:48:27 +00:00
Julien Giovaresco
2fcf98536f Implement Hawk Authentication (#446)
* Implement Hawk Authentication

* fix the missing label of inputs

* Fix PR reviews
2017-08-21 10:43:12 -07:00
Xuanwo
e805d86c32 Add environment to plugin (#443)
* Allow request in plugin to access current context

Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>

* Add getAllHeaders API for context request

Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>

* Use JSON to parse npm show's output

Signed-off-by: Xuanwo <xuanwo.cn@gmail.com>
2017-08-21 10:34:25 -07:00
Gregory Schier
d715b7345f Remove maxredirs 2017-08-16 12:48:44 -07:00
Gregory Schier
d13f50c835 Fix tests 2017-08-16 10:14:43 -07:00
Gregory Schier
9d5b896b00 Add max redirects setting to test 2017-08-16 10:08:29 -07:00
Gregory Schier
9b6cb3fb5d No more Git deps 2017-08-15 20:49:58 -07:00
Gregory Schier
852a6e6f14 Slower response refresh 2017-08-15 17:19:02 -07:00
Gregory Schier
8f00d81a7d Network logging 2017-08-15 16:30:59 -07:00
Gregory Schier
c4933badba Add response.bytesContent and use for size check (Closes #412) 2017-08-11 14:44:34 -07:00
Gregory Schier
7b494c2b95 Add token prefex oauth option and foldable advanced options (#420) 2017-08-10 12:34:33 -07:00
Gregory Schier
a834b93e5e Set max redirects limit to 20 (Closes #414) 2017-08-10 08:44:24 -07:00
Gregory Schier
851116e3f0 Added menu item for keyboard shortcuts and many small fixes 2017-08-04 09:54:11 -07:00
Jerry Saravia
43bc07460a Add redirectUri to url regex for OAuth2 (#396)
* Add redirectUri to url regex for OAuth2

Keycloak, an OAuth2/OpenId Connect authentication server,
has multiple pages it redirects to during the login process
for the user. One such internal url it uses has `code=` as part
of the url. This causes the window to close prematurely and attempt
to get an access token. However, the code is wrong because it is
only an intermediaery step for Keycloak.

This fix will add the redirectUri to the regex. Insomnia will only attempt
to fetch the token AFTER keycloak has finished it's full login flow
and has redirected back to the redirectUri.

* Code review changes
2017-08-03 18:16:27 -07:00
Gregory Schier
766b15a3d3 Fix AWS auth GET requests (Fixes #391) 2017-08-01 15:13:24 -07:00
Gregory Schier
6bf2e1652a Better support for reading files with Response tag 2017-08-01 11:20:47 -07:00
Christophe Pouliot
36d3bd5bf5 Add netrc as auth type (#384)
* Add netrc as auth type

* Re add netrc flow types

* Remove period from netrc text to accommodate windows users

* Address comments

* Add netrc network test
2017-07-31 10:29:36 -07:00
Gregory Schier
69b34162c1 Fix tests 2017-07-25 19:44:34 -07:00
Gregory Schier
0a7e790071 Fix binary file upload method 2017-07-25 19:40:32 -07:00
Gregory Schier
a4737e1b2a Use CURLOPT_CUSTOMREQUEST properly (#377)
* Use CURLOPT_CUSTOMREQUEST properly

* Fix content-type
2017-07-25 17:49:22 -07:00
Gregory Schier
911315b401 Refactored test beforeeach 2017-07-19 20:36:44 -07:00
Gregory Schier
09c219fb6d More Plugin Hooks (#352)
* Playing around with pre-request hooks

* Added response hooks

* More flow types

* Flow types on wrapper.js

* Flow types on plugin folder

* Basic tests for plugin hooks

* Make DB initilize for all tests no matter what

* Touch
2017-07-19 18:55:40 -07:00
Gregory Schier
361f03e5a9 Flow types on wrapper.js 2017-07-18 21:48:28 -07:00
Gregory Schier
fe1a0903b6 Fix lint error 2017-07-18 19:57:49 -07:00
Gregory Schier
c90ea4d35a More verbose flow types 2017-07-18 19:54:03 -07:00
Gregory Schier
2322b8be39 More flow types 2017-07-18 18:55:47 -07:00
Gregory Schier
8c58ffea60 More flow types 2017-07-18 15:10:57 -07:00
Gregory Schier
7d5477a8d5 Flow types for network.js 2017-07-18 13:38:19 -07:00
Gregory Schier
3c928e0b4c Fix timeline tracking 2017-07-17 12:05:31 -07:00
Gregory Schier
dc221bb05c Apply AWS signing to application/x-www-form-urlencoded bodies 2017-07-12 14:20:31 -07:00
Peter Lyons
d2c677c0fd Add support for AWS authentication (#347)
* Implements #344
* Multifactor authentication (MFA) not yet supported
2017-07-12 14:01:14 -07:00
Gregory Schier
7d55c7a2e6 Fix response error handling 2017-07-10 17:23:40 -07:00
Gregory Schier
fcd901109d Merge branch 'develop' of github.com:getinsomnia/insomnia into develop 2017-07-10 15:34:29 -07:00
Gregory Schier
8d69bfe659 Add paste as event that delays network requests 2017-07-10 15:34:22 -07:00
Nicholas Mata
b925791ce8 Fixed OAuth 2.0 Refresh Token (#346) 2017-07-05 14:08:57 -07:00
Gregory Schier
8e1dd2b8cb Remove some console logs 2017-06-30 09:16:36 -07:00
Gregory Schier
61fab44b04 Fix unix domain socket match 2017-06-30 09:00:00 -07:00
Gregory Schier
de610f419b Move response bodies out of DB (#338)
* Move response bodies out of DB

* Small tweak
2017-06-29 20:30:22 -07:00
Gregory Schier
fbb7f1441a Adjust socket parsing 2017-06-22 12:43:11 -07:00
Gregory Schier
8ce6ec60f8 Basic Unix socket support (#322) 2017-06-22 11:43:00 -07:00
Gregory Schier
272949677b Try telling Curl file size (#320) 2017-06-21 14:21:45 -07:00
Gregory Schier
041d333be7 Actually use certificate.disabled property 2017-06-21 14:20:42 -07:00
Gregory Schier
5e6dd09652 Silence empty data blobs 2017-06-21 13:58:41 -07:00
Paul Douglas Brimicombe
cd54a74f2f Allow wildcards in client certificate hosts (#262)
* Allow wildcards in client certificate hosts

* Add test for certificate hosts that are only wildcards

* Constants should be upper case

* Fix function import for urlMatchesCertHost

* Document certificate host wildcards

* Prefer direct function exports in library files

* Use string substitution for wildcards when parsing certificate urls
2017-06-21 13:56:19 -07:00
Gregory Schier
07772bb3f1 Set cookies on 30X redirects now (#312)
* Set cookies on 30X redirects now

* Enable Curl cookie storing to catch more cases

* A bit cleaner
2017-06-15 10:52:51 -07:00