Skip to content

fix: better error msg for Org.getFrontDoorUrl#1270

Open
cristiand391 wants to merge 1 commit into
mainfrom
cd/handle-bad-oauth-token
Open

fix: better error msg for Org.getFrontDoorUrl#1270
cristiand391 wants to merge 1 commit into
mainfrom
cd/handle-bad-oauth-token

Conversation

@cristiand391
Copy link
Copy Markdown
Member

@cristiand391 cristiand391 commented Mar 27, 2026

What does this PR do?

See this thread:
https://salesforce-internal.slack.com/archives/C01LKDT1P6J/p1774541830251329?thread_ts=1774447246.712929&cid=C01LKDT1P6J

The UI Bridge API can return 403/bad_oauth_token if the token isn't valid or if the user has the API Only User perm assigned, see:
https://help.salesforce.com/s/articleView?id=xcloud.frontdoor_singleaccess.htm&type=5

Screenshot 2026-03-26 at 21 56 09 Screenshot 2026-03-26 at 21 56 59

Repro

  1. checkout this branch, build and link into plugin-org
  2. checkout ebikes, follow the readme to create scratch, deploy and assign the ebikes permset
  3. sf org open --path lightning/setup/PermSets/home and open the ebikes permset
  4. click on system permissions -> edit and toggle the API Only User to QA this

What issues does this PR fix or reference?

[skip-validate-pr]

@cristiand391 cristiand391 requested a review from a team as a code owner March 27, 2026 00:52
"EinsteinGPTForDevelopers",
"EinsteinRecommendationBuilder",
"EinsteinRecommendationBuilderMetadata",
"EinsteinSalesRepFdbk",
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some git hook/npm script added this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants