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 an option to parse token from POST form data. #293

Merged
merged 1 commit into from
Jun 5, 2022

Conversation

Starballoon
Copy link
Contributor

As mentioned in Issue 292, we all participated in the training camp organized by ByteDance. They recommended this lightweight middleware for our project. The job assigned to us needs to parse the token from the POST form data, which have not been supported by this middleware. So I wish to add a parsing option to support this and it works fine in my own project.

@codecov-commenter
Copy link

codecov-commenter commented Jun 5, 2022

Codecov Report

Merging #293 (b4eaf1c) into master (687525f) will decrease coverage by 1.81%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #293      +/-   ##
==========================================
- Coverage   90.45%   88.64%   -1.82%     
==========================================
  Files           1        1              
  Lines         440      449       +9     
==========================================
  Hits          398      398              
- Misses         30       39       +9     
  Partials       12       12              
Flag Coverage Δ
go-1.16 88.64% <0.00%> (-1.82%) ⬇️
go-1.17 88.64% <0.00%> (-1.82%) ⬇️
macos-latest 88.64% <0.00%> (-1.82%) ⬇️
ubuntu-latest 88.64% <0.00%> (-1.82%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
auth_jwt.go 88.64% <0.00%> (-1.82%) ⬇️

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 687525f...b4eaf1c. Read the comment docs.

@appleboy appleboy merged commit 119241c into appleboy:master Jun 5, 2022
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.

3 participants