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
| Name | Type | JSON name | Description |
|---|---|---|---|
ClaimHeaders | Models.Network.ApiTestAuthentication_claimHeaders? | claimHeaders | The headers the gateway sets from the token's claims. |
Consumer | string? | consumer | The consumer. |
DayLimit | long? | dayLimit | The plan's daily limit. |
DayRequests | long? | dayRequests | Requests of the consumer today, from the usage records. |
KeyId | string? | keyId | The key's ID, when its secret matched. |
KeyVerdict | string? | keyVerdict | For a request that needs a key: ACCEPTED, MISSING, UNKNOWN, REVOKED, EXPIRED, CONSUMER_OFF or NOT_SUBSCRIBED. |
MonthLimit | long? | monthLimit | The plan's monthly quota. |
MonthRequests | long? | monthRequests | Requests of the consumer this month, from the usage records. |
Plan | string? | plan | The consumer's plan. |
RequestsPerSecond | int? | requestsPerSecond | The plan's rate in requests a second: enforced at the edge, not by this panel. |
Required | string? | required | KEY, JWT or KEY_AND_JWT. |
TokenCode | string? | tokenCode | Why 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. |
TokenKeyId | string? | tokenKeyId | The ID of the issuer's key that verified the token. |
TokenMessage | string? | tokenMessage | The same in words. |
TokenVerdict | string? | tokenVerdict | For 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. |