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

Don't gather download token for authenticated file download #96

Merged
merged 1 commit into from
Feb 13, 2024

Conversation

psrok1
Copy link
Member

@psrok1 psrok1 commented Feb 13, 2024

Download token is needed only for convenient downloads from UI, where we can't easily pass Authorization header to the request. Using direct call to API, we need to make only one request to download file contents.

MWDB Core code that handles authenticated download:

https://github.com/CERT-Polska/mwdb-core/blob/3be33c65e25419da89212afa174415d58d908fc8/mwdb/resources/file.py#L441-L445

@psrok1 psrok1 force-pushed the fix/dont-use-token-for-download branch from 5af6299 to 1cce767 Compare February 13, 2024 14:50
@psrok1 psrok1 merged commit db5a4ef into master Feb 13, 2024
3 checks passed
@psrok1 psrok1 deleted the fix/dont-use-token-for-download branch February 13, 2024 22:41
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.

2 participants