Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have published my user profile service application and my search service application from one farm which hosts mysites to another farm which is just for collaboration. I would like to be able to follow sites on the collaboration farm and they show up on the list of followed sites on the mysites farm.

I can follow sites on the mysites farm but I get an error when trying to follow a site on the collaboration farm. The ULS logs on the collaboration farm has the following:

FollowedContent.FollowItem:Exception:System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.HttpWebRequest.GetResponse() at Microsoft.SharePoint.Client.SPWebRequestExecutor.Execute() at Microsoft.SharePoint.Client.ClientRequest.ExecuteQueryToServer(ChunkStringBuilder sb) at Microsoft.Office.Server.UserProfiles.FollowedContentProxy.Execute(String methodName) at Microsoft.Office.Server.UserProfiles.FollowedContent.FollowItem(FollowedItem item, Boolean isInternal)

But I could see in my iis logs on the mysite farm that a query was trying to take place but a was 401 returned:

POST /personal/domain_userid/_vti_bin/client.svc/ProcessQuery - 80 - xxx.xxx.xxx.xxx - 401 2 5 109 POST /personal/domain_userid/_vti_bin/client.svc/ProcessQuery - 80 - xxx.xxx.xxx.xxx - 401 0 0 93

Running a packet sniffer on the mysite farm I was able to dig a little deeper on the actual error:

{"error_description":"Invalid JWT token. Could not resolve issuer token."}

and the response also had a header of:

x-ms-diagnostics: 3000006;reason="Token contains invalid signature.";category="invalid_client"

It seems like my claim is not transferring properly to the other farm. Both farms are using windows claims with NTLM.

Any thoughts on next troubleshooting steps or how to resolve? Thanks!

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

I also posted this question here on the msdn forums: http://social.msdn.microsoft.com/Forums/en-US/sharepointadmin/thread/487112d7-5085-4316-bd6e-c81ad165cc21

The issue ended up being I didn't set the realm and the registeredissuername correctly on both farms so the claim couldn't be decrypted properly.

I did a complete writeup with powershell code on my blog here: http://steve.thelineberrys.com/following-sites-across-farms-with-sharepoint-2013-mysites/

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.