Skip to content
This repository has been archived by the owner on Oct 24, 2024. It is now read-only.

Commit

Permalink
docs [jwt-verifier]: Adds support for custom jwks URI when it cannot …
Browse files Browse the repository at this point in the history
…be constructed from issuer URI
  • Loading branch information
vtajzich authored and denysoblohin-okta committed Jul 7, 2021
1 parent bfb192e commit c7d63c5
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages/jwt-verifier/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,18 @@ The values you want to assert are always represented as an array (the right side

NOTE: Currently, `.includes` is the only supported claim operator.

## Custom JWKS URI

Custom JWKS URI can be provided. It's useful when JWKS URI cannot be based on Issuer URI:

```javascript
const verifier = new OktaJwtVerifier({
issuer: 'https://{yourOktaDomain}',
clientId: '{clientId}',
jwksUri: 'https://https://{yourOktaDomain}/oauth2/v1/keys'
});
```

## Caching & Rate Limiting

* By default, found keys are cached by key ID for one hour. This can be configured with the `cacheMaxAge` option for cache entries.
Expand Down

0 comments on commit c7d63c5

Please sign in to comment.