pycon.tw icon indicating copy to clipboard operation
pycon.tw copied to clipboard

Feat/swagger auth

Open Dawn0472 opened this issue 1 year ago • 2 comments

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

Dawn0472 avatar May 22 '23 14:05 Dawn0472

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

josix avatar May 31 '23 04:05 josix

Codecov Report

Patch coverage: 65.82% and project coverage change: +0.01 :tada:

Comparison is base (4b520ac) 69.56% compared to head (287fc55) 69.57%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

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     
Impacted Files Coverage Δ
src/core/models.py 95.71% <ø> (-0.49%) :arrow_down:
src/users/api/views.py 36.66% <36.66%> (ø)
src/pycontw2016/urls.py 84.21% <66.66%> (-1.51%) :arrow_down:
src/core/authentication.py 81.25% <79.31%> (-18.75%) :arrow_down:
src/attendee/api/views.py 42.85% <100.00%> (ø)
src/events/api/views.py 52.00% <100.00%> (ø)
src/sponsors/api/views.py 41.17% <100.00%> (ø)
src/users/api/urls.py 100.00% <100.00%> (ø)

... and 6 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

codecov-commenter avatar Jun 17 '23 09:06 codecov-commenter