Skip to content

rest allow the fileids to get obtained if you know the token and are authenticated#1569

Merged
monkeyiq merged 1 commit intofilesender:developmentfrom
monkeyiq:2023/oct/rest-transfer-token-to-fileids
Oct 24, 2023
Merged

rest allow the fileids to get obtained if you know the token and are authenticated#1569
monkeyiq merged 1 commit intofilesender:developmentfrom
monkeyiq:2023/oct/rest-transfer-token-to-fileids

Conversation

@monkeyiq
Copy link
Copy Markdown
Contributor

This relates to #1555.

@github-actions
Copy link
Copy Markdown

If there are selenium UI results for this code they will be at filesenderuici@78598cc

@monkeyiq monkeyiq merged commit 740abc4 into filesender:development Oct 24, 2023
@multimeric
Copy link
Copy Markdown

multimeric commented Jul 2, 2024

Can you explain how to use this? A recipient has only a token, but if I hit this new endpoint, it says I need to authenticate

$ curl 'https://filesender.aarnet.edu.au/rest.php/transfer/fileids?token=my-download-uuid-token'
{"message":"rest_authentication_required","uid":"6683a5db7c2e3","details":{"method":"get","endpoint":"transfer"}}

@PaulLocksley
Copy link
Copy Markdown
Contributor

Hey @multimeric,
I was having a play with this earlier today, this endpoint still requires authentication but you should have no issues getting files from any valid download token.

Reading the related file changes, this seems like the desired behavior.

If you sign the request like normal do you have any issues?

@multimeric
Copy link
Copy Markdown

multimeric commented Jul 3, 2024

this endpoint still requires authentication

Yes but the person who has been sent a transfer potentially has no credentials at all. They are neither a FileSender user, nor a guest (which is only for voucher uploads). So possibly my problem is still outstanding?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants