SDK reference / Models / Network

ApiTokenValidation

Kind: class

Namespace: Egulu.Sdk.Models.Network

How an API checks tokens (JWT). The platform fetches the issuer's keys through its own safe-egress path; the edge router never does.

Properties

NameTypeJSON nameDescription
AlgorithmsList<string>?algorithmsThe signature algorithms accepted: ES256, ES384, PS256, PS384, PS512, RS256, RS384, RS512. ES256 and RS256 when omitted. `none` and the HMAC algorithms are never accepted, and an algorithm must fit the key's type (a token cannot use an RSA public key as an HMAC secret).
AudiencesList<string>?audiencesThe `aud` values a token may carry, 1 to 10: one of them must be there.
ClaimHeadersModels.Network.ApiTokenValidation_claimHeaders?claimHeadersClaim to header: the edge sets the header from the validated claim (a text, a number, a boolean or a list of texts) and takes off any copy a client sent, on every request. At most 10, for example `{"sub": "x-user-id"}`.
ClockSkewSecondsint?clockSkewSecondsHow far a clock may be off, 0 to 120 seconds; 60 when omitted.
Issuerstring?issuerThe `iss` a token must carry, exactly; at most 256 characters.
JwksUristring?jwksUriThe https address of the issuer's JWKS (a host name, not an IP address; a public address only). The platform reads it, at most 64 KiB and 20 keys, and again every ten minutes; an unknown key ID is refused, never fetched for.