Securely consuming third-party APIs is hard to explain and easy to get wrong.
Dev teams need to handle tokens, CORS, request validation, and response handling without exposing secrets or turning integrations into brittle one-off scripts.
This page demonstrates a happy path, token expiry, wrong audience, and browser-side schema validation using your live Auth0 tenant and AWS API Gateway endpoint. The interface explains the flow step by step without DevTools.
This demo was designed and built through a human-led process, with AI used to assist with wording, presentation polish, and code refinement.
Dev teams need to handle tokens, CORS, request validation, and response handling without exposing secrets or turning integrations into brittle one-off scripts.
It lets teams observe the flow step by step so they can understand how secure API consumption behaves before the real integration is automated in production.
Imperva found API insecurity accounted for about 1 in 13 cybersecurity incidents globally.
This demo shows how token expiry, wrong audience, and unsafe payloads can all stop a request for different reasons.
Imperva’s study estimated global annual losses from API insecurity at $41B to $75B, while Akamai reported average incident costs above US$580,000 in surveyed APAC markets.
Sources: Imperva / Marsh McLennan, Akamai, OWASP API Security Top 10
Each button obtains or reuses a token, calls the live API, and explains what happened behind the scenes.
Fetch a valid token, call the protected prices endpoint, and render normalized price rows.
Request a valid access token from Auth0 using the happy-path client.
Send the token in the Authorization: Bearer header to API Gateway.
Render the response only after the browser validation checks pass.
Use the same valid token but wait until it expires, then show the gateway rejection.
Obtain a valid token and display its expiry.
Wait until the token is past its exp timestamp.
Call API Gateway again and show that the request is rejected before Lambda is invoked.
Request a token for a compromised or incorrect audience and prove that API Gateway denies it.
Get a token whose aud does not match the API Gateway JWT authorizer.
Send it to the same protected route.
Explain that the gateway denied it because the token was minted for a different API audience.
Use a sample upstream payload and show how the browser refuses unsafe data before rendering.
Run client-side schema checks against a payload.
Accept arrays of items with valid name, price, and currency
types.
Reject payloads with wrong shapes, wrong types, or suspicious extra fields.
This panel records each step so a visitor can follow the flow without reading source code.
| Name | Price | Currency |
|---|---|---|
| No rows rendered yet. | ||