Fixed errors caused by PyJWT 2.0.x update. #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This sample (and accompanying blog at https://medium.com/@ratrosy/building-a-basic-authorization-server-using-authorization-code-flow-c06866859fb1) is really good for understanding OAuth 2.0 and how JWT are used.
Unfortunately the existing code for the Access Code flow causes some errors, I assume due to changes in PyJWT 2.0.0 which were simple to spot and fix (as you can see, the commits are very small).
I will continue working through the other OAuth 2.0 flows, and will commit changes to those if I come across the same issues. Thanks again for your work on this!
G