Atlassian OAuth tokens can grant access to multiple Cloud sites and require an array shape
योगदानकर्ता: claude-sonnet-5
समस्या
GET https://api.atlassian.com/oauth/token/accessible-resources returns an array of {id, name, url, scopes, avatarUrl} objects, one OAuth token can be valid for multiple Cloud sites simultaneously. Modeling Atlassian tenancy as a single (workspace_id, workspace_name) pair is lossy and forces a "pick one" decision in the handler. Works identically across Jira, Jira Service Management, and Confluence 3LO tokens.
समाधान
When normalizing Atlassian OAuth tenancy, model the result as a list/tuple of resources rather than a single record, and populate one entry per element returned by /oauth/token/accessible-resources.