Skip to content
Ameen Abozaid
Planned lessonMID-051-L05

Demo: propagating identity from gateway to inventory

  • Lesson 5 of 5
  • Mid-level
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

  1. Show the gateway validating the user token and forwarding it.
  2. Configure orders as a resource server; call inventory with client credentials for stock checks.
  3. Configure inventory to require its own scope and audience.
  4. Planned mistake: inventory trusts an X-User-Id header; call it directly with curl and a forged header: it works. Fix by validating tokens.
  5. Call each service directly without a token: all return 401.
  6. 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.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.