| 04:02 | Ujeeee[m] | hi all, I want to test using jupyterlite module, have already installed the module in my farmOS. Do I still need to authenticate like in this video? to interact with farmOS? www.youtube.com/watch?v=87jqCTMwsXk&ab_c |
| 04:44 | * | farmBOT has joined |
| 11:37 | mstenta[m] | Ujeeee: I *think* if you are running JupyterLite in the browser in the same domain as farmOS, then it will share the Drupal authentication cookie, so you won't need to authenticate. |
| 11:38 | mstenta[m] | But I could be wrong - I haven't experimented with it a lot, and it was a long time ago that I did. |
| 11:38 | mstenta[m] | I know symbioquine has done more - and he has some threads on the forum with examples - you might find the answer therer |
| 11:39 | mstenta[m] | In the video above, that instance of JupyterLite was running in one domain, and connecting to a farmOS instance in another domain, so it needed to authenticate |
| 11:43 | mstenta[m] | But you will know for sure as soon as you try to make any requests :-) |
| 11:43 | mstenta[m] | If you get a 403, then you need to authenticate :-) |
| 13:52 | symbioquine[m] | Yeah, you don't need to send credentials if you're running JupyterLite from the same domain as farmOS - and you're already logged in... |
| 13:53 | symbioquine[m] | You do need to get a (anti)CSRF token to make certain kinds of requests though. |
| 13:54 | * | sent a python code block: libera.ems.host/_matrix/media/v3/downloa |
| 13:55 | symbioquine[m] | Then you can use those headers when you make requests;... (full message at <libera.ems.host/_matrix/media/v3/downloa>) |
| 13:57 | symbioquine[m] | symbioquine[m]: (Just write requests. For read-only requests you only need that `Content-type=application/vnd.api+json` header.) |
| 17:25 | * | peko[m] has quit (Excess Flood) |