Flipkart Marketplace Platform · View 24 of 25 · 7 · Assurance
Decisions
- Keycloak for the 500M-strong customer realm; Microsoft Entra ID for staff and seller staff, with conditional access
- Three realms, three audiences, no shared tokens — a seller token cannot be replayed against a customer API
- The gateway verifies the JWT signature locally rather than introspecting, so identity is not on the hot path
Token handling
- 15-minute access tokens with rotating refresh tokens; reuse of a rotated refresh token revokes the whole family
- Step-up authentication is risk-driven — device, geography and velocity — not applied to every login
- Authorisation is a policy decision at the service, returning a field mask, so the same endpoint returns less to a lower-trust caller
Why not managed identity for customers
- Entra External ID priced per monthly active user is not viable at this population
- Keycloak self-hosted is a real operational burden — an HA cluster, an upgrade treadmill and a team that owns it
- The trade is accepted for the customer realm only; every internal and privileged identity stays on Entra