0
votes

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.

1
If the answer is helpful for you, you can accept it as answer( click on the check mark beside the answer to toggle it from greyed out to filled in). This can be beneficial to other community members. Thank you.Tony Ju

1 Answers

0
votes

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)

enter image description here

If the permissions does't require admin consent, you can also use individual user consent which doesn't need admin permission.