Closed michielbdejong closed 4 years ago
In the docker image for nextcloud-server we can inject a php file that makes it easy to run
https://github.com/nextcloud/server/blob/1762a409f954fd9a66e7572704ea9ba7813601b4/lib/private/Authentication/Login/CompleteLoginCommand.php#L40-L46
for instance https://server/apps/solid/dontDoThisAtHome.php?user=alice&password=alice123
This is a variation on @poef's https://github.com/pdsinterop/solid-nextcloud/blob/master/solid/lib/Controller/ServerController.php#L193-L201 but I think we can keep it outside the Solid app and just inject it into the Docker image at the test-suites level.
I will need this for https://github.com/pdsinterop/test-suites/tree/master/testers/open-cloud-mesh as well, btw! :)
The code in https://github.com/solid/webid-provider-tests/blob/master/test/surface/authorize-endpoint.test.ts#L8 was only tested on node-solid-server. I should have a version for nextcloud-server, including:
and 'user' instead of 'username' in https://github.com/solid/webid-provider-tests/blob/master/test/surface/authorize-endpoint.test.ts#L13