SDK reference / Models / Network

ApiTestAuthentication

Kind: class

Namespace: Egulu.Sdk.Models.Network

What the gateway decided about the key of a test request. The key is checked against the stored hashes in constant time and is never kept.

Properties

NameTypeJSON nameDescription
ClaimHeadersModels.Network.ApiTestAuthentication_claimHeaders?claimHeadersThe headers the gateway sets from the token's claims.
Consumerstring?consumerThe consumer.
DayLimitlong?dayLimitThe plan's daily limit.
DayRequestslong?dayRequestsRequests of the consumer today, from the usage records.
KeyIdstring?keyIdThe key's ID, when its secret matched.
KeyVerdictstring?keyVerdictFor a request that needs a key: ACCEPTED, MISSING, UNKNOWN, REVOKED, EXPIRED, CONSUMER_OFF or NOT_SUBSCRIBED.
MonthLimitlong?monthLimitThe plan's monthly quota.
MonthRequestslong?monthRequestsRequests of the consumer this month, from the usage records.
Planstring?planThe consumer's plan.
RequestsPerSecondint?requestsPerSecondThe plan's rate in requests a second: enforced at the edge, not by this panel.
Requiredstring?requiredKEY, JWT or KEY_AND_JWT.
TokenCodestring?tokenCodeWhy a token is not valid, as a short code: malformed, too-large, alg-none, alg-not-allowed, key-not-found, key-mismatch, bad-signature, expired, not-yet-valid, bad-issuer, bad-audience or no-keys.
TokenKeyIdstring?tokenKeyIdThe ID of the issuer's key that verified the token.
TokenMessagestring?tokenMessageThe same in words.
TokenVerdictstring?tokenVerdictFor a request that needs a token: VALID or INVALID. The token is sent as `Authorization: Bearer …` in the test request's headers, checked against the keys the platform fetched and never kept.