You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let PrincipalResolverError carry a stable error code, not only a status #1623
Let PrincipalResolverError carry a stable, machine-readable error code alongside the status. A code drawn from a constrained set (for example ^[a-z][a-z0-9_]{0,63}$) adds no risk of leaking exception text.
Why
#1328's non-bearer principal resolver is the right replacement for adopter auth bridges, but its rejection is fixed: PrincipalResolverError(403) always answers 403 {"error": "forbidden"}. That is safe by design (no exception text reaches the caller), but sellers with documented rejection codes can't express them.
The Embedded Sales Agent's embedded mode returns documented 403 bodies such as identity_required, identity_org_mismatch and network_policy_denied, which its integrator branches on. That's why ESA can't move its embedded_buyer_auth_bridge onto the resolver.
Activity
feat(server): let PrincipalResolverError carry a stable error code
feat(server): let PrincipalResolverError carry a stable error code (#…