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

Защита ручки GET /file/{pin} #86

Merged

Conversation

gitfresnel
Copy link
Contributor

Изменения

добавил авторизацию ручки GET /file/{pin}

@gitfresnel gitfresnel linked an issue Sep 2, 2024 that may be closed by this pull request
3 tasks
Copy link

github-actions bot commented Sep 2, 2024

Code Coverage

Coverage Report
FileStmtsMissCoverMissing
print_service
   __main__.py440%1–7
   base.py12467%6–9
   exceptions.py52787%21, 40, 45, 60, 65, 70, 77
print_service/routes
   admin.py492647%28–29, 32–36, 39–43, 50–56, 63–69
   auth.py440%1–8
   exc_handlers.py59985%34, 58, 70, 80, 124, 136, 144, 154, 166
   file.py1311985%50, 56, 58, 130–131, 175, 183–184, 186, 189–190, 195–196, 206–209, 254, 263
   qrprint.py1127137%39–48, 53–59, 62–70, 73–82, 86–107, 110, 113–116, 124–127, 135–148
   user.py51492%66, 114–116
print_service/utils
   __init__.py58395%44, 86–87
TOTAL65515177% 

Summary

Tests Skipped Failures Errors Time
23 1 💤 0 ❌ 0 🔥 1.084s ⏱️

@Temmmmmo Temmmmmo changed the title f Защита ручки GET /file/{pin} Sep 19, 2024
@Temmmmmo
Copy link
Member

Нужно защитить не только GET /file/{pin}, а защитить еще следующие ручки:

POST /file/{pin} Scope: print.file.create
PATCH /file/{pin} Scope: print.file.update

@Temmmmmo Temmmmmo merged commit 909ca5a into main Oct 23, 2024
2 checks passed
@Temmmmmo Temmmmmo deleted the 40-защитить-ручки-get-filepin-get-staticfilepdf branch October 23, 2024 13:16
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.

Защитить ручки GET /file/{pin}, GET /static/{file}.pdf
2 participants