Reputation: 1
We are trying to call a web api hosted in azure app service from SPFX react webpart using aadhttpclientfactory.
We are receiving the below error.
Error: Error - Type : interaction_required - Description : AADSTS65001: The user or administrator has not consented to use the application with ID <> named 'SharePoint Online Client Extensibility Web Application Principal'. Send an interactive authorization request for this user and resource.
Please suggest the process to resolve the above issue.
Thanks in advance.
Upvotes: 0
Views: 1053
Reputation: 137
For us, we needed to give access to the “SharePoint Online Client Extensibility Web Application Principal” App Registration on our web-hosted API. Follow these steps to do this:
Upvotes: 1
Reputation: 15629
You need to consent to use the application. Go to azure portal->Azure Active Directory->App registrations->find your application->Api permissions->click Grant admin consent button(remember to login with the admin account)
If the permissions does't require admin consent, you can also use individual user consent which doesn't need admin permission.
Upvotes: 0