Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
bellebaum authored and anakinj committed Jan 31, 2023
1 parent 425c107 commit bc80470
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,9 @@ This can be used to implement caching of remotely fetched JWK Sets.
If the requested `kid` is not found from the given set the loader will be called a second time with the `kid_not_found` option set to `true`.
The application can choose to implement some kind of JWK cache invalidation or other mechanism to handle such cases.

Tokens without a specified `kid` are rejected by default.
This behaviour may be overwritten by setting the `allow_nil_jwks` option for `decode` to `true`.

```ruby
jwks_loader = ->(options) do
# The jwk loader would fetch the set of JWKs from a trusted source.
Expand Down

0 comments on commit bc80470

Please sign in to comment.