Authorize a deployment request
Authentication
Per-deployment JWT signed by astro-server (HS256). Injected into the agent and
messaging containers as the ASTRO_AUTHZ_TOKEN environment variable. The sub
claim identifies the deployment.
Query parameters
user for a signed-in user, slack for a Slack user, or empty for anonymous
(only valid when an anyone grant exists for the adapter).
The user id corresponding to identity_type — the platform user id for user,
the Slack user id for slack. Must be supplied together with identity_type;
providing one without the other returns 400.
Adapter-specific disambiguator for identity_id. For slack, this is the
workspace team_id (Slack user ids are only unique within a team). Omit for web.
Response
Resolved platform user id. Echoed back for identity_type=user;
looked up via Slack identity mappings for identity_type=slack (empty
when no mapping exists). Only present when allowed: true.
The Slack user id from the request, echoed back so callers can attribute
unlinked Slack users to a namespaced trace id. Only present when
allowed: true and identity_type=slack.
The Slack workspace id (team_id) from the request, echoed back. Only
present when allowed: true and identity_type=slack.