I’m trying to develop an app that a third party service will send a request to. I’m able to do this, but I have some problems with the authentication process.
Right now when the request is sent the only response that the third party service get is “User is not currently logged in.” This must be because the third party service haven’t authenticated itself yet. Manually going to the same route while logged in to nextcloud through an url shows me the response.
Now I’ve tried to send a token (which I get from nc_token cookie) to the third party service, and it uses it as part of its request both in its body (form) and as a authentication header bearer token. This used to work when I was working on this app on nc16, but now on a new server with NC18 it doesn’t work, giving the same error message.
How should I authenticate such a request to nextcloud? Any other apps that does this?