Authenticate against a password-protected share
POST/api/v1/shares/:shareId/auth
Public endpoint (no user auth). On success issues a safebucket_share_token cookie scoped to this share, required by every other endpoint under /shares/{shareId}.
Request
Responses
- 200
- 400
- 401
- 404
- 410
Authenticated; share token issued. Body is an empty JSON object
Response Headers
Set-Cookie
New safebucket_share_token cookie
Share has no password set (SHARE_NOT_PASSWORD_PROTECTED)
Wrong password (SHARE_PASSWORD_INVALID)
Share not found or revoked (SHARE_NOT_FOUND)
Share has expired (SHARE_EXPIRED)