Skip to content

Improve "error_description" of token response of directly obtaining M2M token for a sub org when the app is not shared to that sub org #27163

@AnuradhaSK

Description

@AnuradhaSK

Description

Screen.Recording.2026-03-19.at.00.59.52.mov

Error description should be descriptive
Image

Steps to Reproduce

  1. Create a CC enabled app
  2. Create few sub orgs
  3. Share the app only to one sub org and enable the enhanced organization login for the application from the same tab
  4. Try token retrieval from direct sub org using a sub org id which doesn't have the shared app```
    curl --location 'https://localhost:9443/t/carbon.super/o//oauth2/token'
    --header 'Content-Type: application/x-www-form-urlencoded'
    --header 'Authorization: Basic '
    --data-urlencode 'grant_type=client_credentials'
    --data-urlencode 'scope=internal_oauth2_introspect internal_org_user_mgt_create internal_org_user_mgt_delete internal_org_user_mgt_list internal_org_user_mgt_update internal_org_user_mgt_view read write'
5. error_description of the response should be descriptive 

### Version

IS-7.3.0-beta-SNAPSHOT

### Environment Details (with versions)

_No response_

### Developer Checklist

- [ ] [Behavioural Change] Does this change introduce a behavioral change to the product?
- [ ]  ↳ Approved by team lead
- [ ]  ↳ Label `impact/behavioral-change` added
- [ ] [Migration Impact] Does this change have a migration impact?
- [ ]  ↳ Migration label added (e.g., `7.2.0-migration`)
- [ ]  ↳ Migration issues created and linked
- [ ] [New Configuration] Does this change introduce a new configuration?
- [ ]  ↳ Label `config` added
- [ ]  ↳ Configuration is properly documented

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions