IRC logs for #farmOS, 2023-05-26 (GMT)

2023-05-25
2023-05-27
TimeNickMessage
[00:02:14]<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? https://www.youtube.com/watch?v=87jqCTMwsXk&ab_channel=DonBlair
[00:44:17]* farmBOT has joined #farmos
[07:37:56]<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.
[07:38:09]<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.
[07:38:40]<mstenta[m]>I know symbioquine has done more - and he has some threads on the forum with examples - you might find the answer therer
[07:39:29]<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
[07:43:24]<mstenta[m]>But you will know for sure as soon as you try to make any requests :-)
[07:43:34]<mstenta[m]>If you get a 403, then you need to authenticate :-)
[09:52:57]<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...
[09:53:37]<symbioquine[m]>You do need to get a (anti)CSRF token to make certain kinds of requests though.
[09:54:08]<symbioquine[m]>ACTION sent a python code block: https://libera.ems.host/_matrix/media/v3/download/libera.chat/4a7f5eb815...
[09:55:53]<symbioquine[m]>Then you can use those headers when you make requests;... (full message at <https://libera.ems.host/_matrix/media/v3/download/libera.chat/4d05dea97e...)
[09:57:14]<symbioquine[m]>symbioquine[m]: (Just write requests. For read-only requests you only need that `Content-type=application/vnd.api+json` header.)
[13:25:46]* peko[m] has quit (Excess Flood)