问题描述
我有一个node.js应用程序,我试图使用PnPjs的AdalFetchClient从共享点获取一些数据。
sp.setup({
sp: {
baseUrl: "https://placeholder.sharepoint.com",fetchClientFactory: () => {
return new AdalFetchClient("tenantId","azure_clientId","azure_clientSecret");
},},});
await sp.web.getAppCatalog().get();
我收到此错误:Error making HttpClient request in queryable [401] Unauthorized ::> {"error_description":"Invalid issuer or signature."}
我像这样设置我的Azure活动目录应用程序的权限: Azure App permissions
我向我要从中获取数据的承租人授予了所有权限: Granted permissions to Azure App
我使用的示例在这里:https://pnp.github.io/pnpjs/nodejs/adal-fetch-client/ 我还尝试将AdalFetchClient与图一起使用。只有sharepoint api似乎有问题。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)