简体   繁体   English

Powerpivot Odata 提要提供凭据

[英]Powerpivot Odata feed provide credentials

I created a OData web services which are hosted in a secure server, to access these services, user need to provide credentials which then gets authenticated using cookie (TMG Fore Front Server Forms)我创建了一个托管在安全服务器中的 OData Web 服务,要访问这些服务,用户需要提供凭据,然后使用 cookie(TMG Fore Front Server Forms)进行身份验证

How can I provide credentials to Table Import Wizard > Connect to a Data Feed ?如何向Table Import Wizard > Connect to a Data Feed提供凭据?

As I get 401 when I enter svc and do test connection.当我进入 svc 并进行测试连接时得到 401。

Update更新

Quiet weird but it was giving me 401 if button clicked after putting url into it, but now I tried from start again, instead of adding url, clicked on advance button and this is what I can see now,安静很奇怪,但如果在将 url 放入其中后单击按钮,它会给我 401,但现在我重新开始尝试,而不是添加 url,单击高级按钮,这就是我现在可以看到的,

在此处输入图片说明

now if I add password and userid, I get this error,现在如果我添加密码和用户名,我会收到这个错误,

============================
Error Message:
============================

The remote server returned an error: (401) Unauthorized.

============================
Call Stack:
============================

   at System.Net.HttpWebRequest.GetResponse()
   at Microsoft.AnalysisServices.Common.DataSourceBasic.UpdateDataFeedParametersInternal(ConnectionStringBuilder connBuilder, IDataSource dataSource, Boolean checkFeedValid, Boolean fKeepAlive)
   at Microsoft.AnalysisServices.Common.DataSourceBasic.UpdateDataFeedParameters(ConnectionStringBuilder connBuilder, IDataSource dataSource, Boolean checkFeedValid)
   at Microsoft.AnalysisServices.Common.DataSourceBasic.GetCurrentConnectionString(Boolean checkFeedValid)
   at Microsoft.AnalysisServices.Common.DataSourceBasic.ClickTestConnection(Object progressControl)

since I happen to know this is a sharepoint based solution you have been working on I think this should be relevant ...因为我碰巧知道这是您一直在研究的基于共享点的解决方案,所以我认为这应该是相关的......

https://msdn.microsoft.com/en-us/library/ee210671(v=sql.120).aspx https://msdn.microsoft.com/en-us/library/ee210671(v=sql.120).aspx

... and for power pivot add on in excel ... ... 并在 excel 中添加电源支点 ...

https://support.office.com/en-gb/article/Connect-to-an-OData-feed-Power-Query-4441a94d-9392-488a-a6a9-739b6d2ad500 https://support.office.com/en-gb/article/Connect-to-an-OData-feed-Power-Query-4441a94d-9392-488a-a6a9-739b6d2ad500

... clicking on the option "from odata feed" in that menu gives you options to build a query, you can also specify the credentials. ...单击该菜单中的“来自 odata 提要”选项可为您提供构建查询的选项,您还可以指定凭据。

Setting up the query gives you the ability to do this ...设置查询使您能够执行此操作...

https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/ https://blog.crossjoin.co.uk/2014/03/26/working-with-web-services-in-power-query/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM