Improve documentation for audience usage #484
Merged
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.
Hello
pyjwt
maintainers,I've recently been using the
pyjwt
codebase to decode JWT tokens originating from Keycloak servers, where the JWTaud
claim is an array by default, and I'm dealing with apython
API
server that supports multipleaudiences
.The edits I've made in this PR hope to improve the documentation for users who are not as familiar with the specific details surrounding the
audience
claim, like I was until I started digging into usingpyjwt
more.ddc1dc1
Makes an explicit code block example for the
aud
claim being anarray
. It was mentioned in the text, but I think making a code block demonstrating it helps make it more clear.46d1940
Adds an example of the
audience
param forjwt.decode
supporting an iterable argument, as implemented in #306.Note that I'm not stuck to the placement of this example, but I was unsuccessful at locating documentation specific to the
jwt.decode
implementationf01df86
Is a simple
.rst
formatting change where the linter I was using was throwing a warning: