I am trying to login into nextcloud via an external website,
curl -d “user=un&password=pw” -X POST “http://example.com/login”
fails in csrf check Request lib/private/AppFramework/Http/Request.php->passesCSRFCheck()
How would i be able to login via a post?
https://github.com/nextcloud/loginviapost does not work on nextcloud 16.
Any leads here will be helpful
Just to add a little more info to the post,
I followed Direct login from other website and added the requesttoken to the post as a parameter, but it fails in csrfTokenManager->isTokenValid($token).
Request token taken from curl (GET) of login page.
curl “http://example.com/login” | grep requesttoken