< 252023-05-26⋎27 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
04:02Ujeeee[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:37mstenta[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:38mstenta[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:38mstenta[m]I know symbioquine has done more - and he has some threads on the forum with examples - you might find the answer therer
11:39mstenta[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:43mstenta[m]But you will know for sure as soon as you try to make any requests :-)
11:43mstenta[m]If you get a 403, then you need to authenticate :-)
13:52symbioquine[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:53symbioquine[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:55symbioquine[m]Then you can use those headers when you make requests;... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
13:57symbioquine[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)

< 252023-05-26⋏27 >