Demo: propagating identity from gateway to inventory
On This Lesson 3 topics
This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.
In this lesson
pass identity safely across three hops. Prepares MID-051-LAB1.
Draft outline details
Step by step
- Show the gateway validating the user token and forwarding it.
- Configure
ordersas a resource server; callinventorywith client credentials for stock checks. - Configure
inventoryto require its own scope and audience. - Planned mistake:
inventorytrusts anX-User-Idheader; call it directly with curl and a forged header: it works. Fix by validating tokens. - Call each service directly without a token: all return 401.
- Show an admin endpoint rejecting a token that lacks the admin scope (403).
Practice
Apply this lesson with the module's lab, exercises and quiz.
Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.