You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Execute the request. Before accessing the protected resource, Kulala will open your default browser and send a request to the authorization server to obtain an access token.
260
+
Execute the request. Before accessing the protected resource, Kulala will open your default browser (or whatever is specified in `Browser CMD`) and send a request to the authorization server to obtain an access token.
261
261
262
262
When prompted, complete the authentication process. The browser will be redirected to the provided `Redirect URL`.
263
263
264
-
Kulala will intercept this redirect and extract the authorization details from the URL, if the provided Redirect URL is `localhost` or `127.0.0.1`. Otherwise, you need to manually copy the code from the redirect URL and paste it into Kulala prompt.
264
+
If the provided `Redirect URL` is `localhost` or `127.0.0.1` or `Browser CMD` is specified, Kulala will start a HTTP server on `localhost`, listening on port specified in `Redirect URL` (or `80`).
265
+
266
+
The HTTP server will then intercept this redirect and extract the authorization details from the URL.
267
+
268
+
Otherwise, you need to copy the code from the redirect URL and paste it into Kulala prompt manually.
265
269
266
270
For Grant Type `Device Authorization`, the code will be copied into clipboard, to be pasted into consent form.
267
271
@@ -504,6 +508,24 @@ The user's password sent as part of authorization, used with the Password grant
504
508
505
509
Specify custom request parameters
506
510
511
+
#### Browser CMD
512
+
513
+
Specify a shell command to open a browser/app to intercept `Redirect URL`. Accepts `Auth URL` and `Redirect URL` as postional arguments. By default opens the system default browser.
514
+
515
+
##### Example:
516
+
517
+
In `lua/kulala/browser` you will find a working example of a custom Electron-based browser, that will open `Auth URL`, intercept `Redirect URL` (which does not have to point to localhost) and redirect the callback request to Kulala local HTTP server. To install Electron - `npm install -g electron`.
The browser script takes 2 arguments: the first is the `Auth URL` (passed by Kulala) and the second is the `Redirect URL` to which the intercepted request will be redirected. Both arguments are passed by Kulala, but if your `Redirect URL` does not point to localhost, you have to specify it manually in `Browser CMD`.
528
+
507
529
## AWS Signature V4
508
530
509
531
Amazon Web Services (AWS) Signature version 4 is a
0 commit comments