Skip to content

Cannot getToken to use in external application for impersonation #10153

Open
@juancardonabizagi

Description

@juancardonabizagi

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

  • 💥 Internet Explorer
  • 💥 Microsoft Edge
  • 💥 Google Chrome
  • 💥 FireFox
  • 💥 Safari
  • mobile (iOS/iPadOS)
  • mobile (Android)
  • not applicable
  • other (enter in the "Additional environment details" area below)

Additional environment details

  • Chrome 134.0.6998.89
  • SPFx version: 1.20.0
  • Node.js version: 18.20.7

Describe the bug / error

I've been getting this error:
{
"odata.error": {
"code": "-1, System.AggregateException",
"message": {
"lang": "en-US",
"value": "One or more errors occurred."
}
}
}

when trying to get token from spfx webpart to impersonate in an external application in azure.

Image

I've already tries to delete the certificate and enter the API access, also i elminated SharePoint Online Client Extensibility Web Application Principal
and enter the API access to created again and is still failing.

Steps to reproduce

  1. Enter de page with the webpart
  2. The request error will appear

Expected behavior

It should give me a token not an error,

Metadata

Metadata

Assignees

Labels

sharepoint-developer-supportsharepoint-developer-supporttype:bug-suspectedSuspected bug (not working as designed/expected). See “type:bug-confirmed” for confirmed bugs.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions