Record: ValidatorConfig
Represents JWT validator configurations.
Fields
- issuer string?
- username string?
- audience string | string[ ]?
- jwtId string?
- keyId string?
- customClaims map<json>?
- clockSkew decimal(default 0)
- signatureConfig ValidatorSignatureConfig?
- cacheConfig CacheConfig?
Expected issuer, which is mapped to the iss
Expected username, which is mapped to the sub
Expected audience, which is mapped to the aud
Expected JWT ID, which is mapped to the jti
Expected JWT key ID, which is mapped the kid
Expected map of custom claims
Clock skew (in seconds) that can be used to avoid token validation failures due to clock synchronization problems
JWT signature configurations
Configurations related to the cache, which are used to store parsed JWT information