Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File Tokens RFC #58

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

File Tokens RFC #58

wants to merge 6 commits into from

Conversation

lohanidamodar
Copy link
Member

@lohanidamodar lohanidamodar commented Jun 27, 2023

What does this PR do?

(Provide a description of what this PR does.)

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work.)

Related PRs and Issues

Have you read the Contributing Guidelines on issues?

(Write your answer here.)


<!-- Brief explanation of the proposed contribution. Write your answer below. -->

Accessing files currently requires either files to be public or need user session with user that have access permission. It's mainly painful for image previews that we want to show publicly. For this reason, we want to introduce file tokens. The tokens will be linked to specific file and will be passed in URL for previews and downloads to provide access.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could also mention how this is problematic with some browsers that don't supports Appwrite's secure cookies.

Avoid using 3rd party libraries when possible, if required - explain why.
-->

This particular feature doesn't require any supporting libraries.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We might need to use JWT tokens for validating the tokens and their permissions. This is because we might not be able to access our DB for validation when serving cached images.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure I understand completely

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.

None yet

2 participants