Consume secured API in SPFX

Copper Contributor

I tried to consume a secure API( function) from Azure. I created a new SPFX package. I want to get a new WebApplicationRequest for permission in SharePoint admin API Access console. When i tried to approve the new installed package get the error "resourceId cannot be empty". My package-solution.json has the following settings

"webApiPermissionRequests": [
{"resource": "contoso-api-dp20191109","scope": "user_impersonation" }]}.

I would be grateful if you have any suggestion?

0 Replies