Skip to content

Feat/swagger auth#1141

Open
Dawn0472 wants to merge 7 commits into
masterfrom
feat/swagger-auth
Open

Feat/swagger auth#1141
Dawn0472 wants to merge 7 commits into
masterfrom
feat/swagger-auth

Conversation

@Dawn0472

Copy link
Copy Markdown

add swagger authorization

  1. add auth button in swagger
  2. add auth url to get token (逾7天更新一次,若無token則新增,有token直接取得- one user vs one token)
  3. update core.models.Token(預設 one user vs multiple token)
  4. update BearerAuthentication function(swagger authorization)
  5. update api import BearerAuthentication

@josix josix self-requested a review May 31, 2023 04:19
@josix

josix commented May 31, 2023

Copy link
Copy Markdown
Collaborator

Hello @Dawn0472, thank you for working on this. There are some coding style issues, could you help me fix it, thanks!

@mattwang44 mattwang44 self-requested a review May 31, 2023 07:01
Comment thread src/users/api/views.py Outdated
@josix josix requested a review from erik1110 June 10, 2023 13:15
@codecov-commenter

codecov-commenter commented Jun 17, 2023

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 65.82278% with 27 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.57%. Comparing base (4b520ac) to head (287fc55).
⚠️ Report is 321 commits behind head on master.

Files with missing lines Patch % Lines
src/users/api/views.py 36.66% 19 Missing ⚠️
src/core/authentication.py 79.31% 6 Missing ⚠️
src/pycontw2016/urls.py 66.66% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1141      +/-   ##
==========================================
+ Coverage   69.56%   69.57%   +0.01%     
==========================================
  Files          82       87       +5     
  Lines        3364     3444      +80     
==========================================
+ Hits         2340     2396      +56     
- Misses       1024     1048      +24     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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

Labels

None yet

Projects

Status: 👀 In review

Development

Successfully merging this pull request may close these issues.

4 participants