Content
View differences
Updated by Swikriti Tripathi over 3 years ago
Requirements
* Authenticates with the private(!) token of user (Any private authentication)
* takes a
* `file_id` (Check for root!!) of the for folder (ensure it is a folder) and
* checks that the current user (which cannot be anonymous in Nextcloud!) has the **rights to create**(!) on that folder
* Creates a token in a separate DB table with
* `token` use the service in Nextcloud to generate token (URL safe(!) as we use them later for BASIC AUTH)
* `created_at`
* `expires_on`
* `folder_id`
* `user_id`
* Returns
* `token`
* `expires_on`
* Authenticates with the private(!) token of user (Any private authentication)
* takes a
* `file_id` (Check for root!!) of the
* checks that the current user (which cannot be anonymous in Nextcloud!) has the **rights to create**(!) on that folder
* Creates a token in a separate DB table with
* `token` use the service in Nextcloud to generate token (URL safe(!) as we use them later for BASIC AUTH)
* `created_at`
* `expires_on`
* `folder_id`
* `user_id`
* Returns
* `token`
* `expires_on`