does anyone know how to enforce division-level scoping for an oauth client in the gateway? i’m passing x-gc-division-id in the header to /api/v2/users/me but it returns a 403 forbidden instead of honoring the scope. the token request payload looks standard:
This seems like a standard trap for multi-tenant architectures. Division scoping at the OAuth client level is strictly enforced by the platform backend, but relying solely on the client configuration creates a brittle pipeline. If the BPO division ID changes or splits, your ETL jobs fail silently or throw 403s without clear context. The Terraform snippet above is correct for static deployments, but for dynamic environments, you must validate the division_id in the response payload before processing. Use the Python SDK to verify the token’s effective scope.