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

Add extension for TokenVerifySerializer. #513

Merged
merged 1 commit into from
Sep 14, 2021

Conversation

ngnpope
Copy link
Contributor

@ngnpope ngnpope commented Sep 14, 2021

Like #512, this was found by validating requests and responses in tests against the schema using some middleware.

In djangorestframework-simplejwt, TokenVerifySerializer has a token field which is not returned in the response. Flag this as write-only.

Also see jazzband/djangorestframework-simplejwt#167.

In `djangorestframework-simplejwt`, `TokenVerifySerializer` has a
`token` field which is not returned in the response. Flag this as
write-only.
@codecov
Copy link

codecov bot commented Sep 14, 2021

Codecov Report

Merging #513 (4c8753b) into master (e6fce04) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #513   +/-   ##
=======================================
  Coverage   98.64%   98.64%           
=======================================
  Files          57       57           
  Lines        5830     5835    +5     
=======================================
+ Hits         5751     5756    +5     
  Misses         79       79           
Impacted Files Coverage Δ
tests/contrib/test_simplejwt.py 100.00% <ø> (ø)
...rf_spectacular/contrib/rest_framework_simplejwt.py 91.66% <100.00%> (+0.96%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e6fce04...4c8753b. Read the comment docs.

@tfranzel
Copy link
Owner

another excellent find! thank you!

@tfranzel tfranzel merged commit dd7020a into tfranzel:master Sep 14, 2021
@ngnpope ngnpope deleted the fix-simplejwt-verify branch September 14, 2021 18:14
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