Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 25064

How to select credentials information in Result Source

$
0
0

Hi Guys.

Could you help me in the following situation?

There is wiki page with SharePoint’s web parts SearchBoxScriptWebPart and ResultScriptWebPart.ResultScriptWebPart has link to Result Source “TestResulSource”
The “TestResulSource” has “OpenSearch 1.0/1.1” type of protocol and Source Url to my web page “RSS handler”.

So could you tell me how to use windows credential of user who submitted the search query to connect to the federated location (RSS handler)?

I tried to create Result Source by programmatically and to set AuthInfo property like this
resultSource.AuthInfo = new AuthenticationInformation(FederationAuthType.PerUserNTLM);
but it doesn’t work.

I think that credential is lost before Result Source because query variable {User.Name} is empty in Result Source side. The {User.Name} isn’t empty if it is set on ResultScriptWebPart Query template.


Thanks a loot 


Viewing all articles
Browse latest Browse all 25064

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>