Authentication issue to view a Users MySite Profile Picture

Nov 19, 2012 at 3:33 PM

Hi,

I am using SPServices to call the GetUserProfileByName webservice from a sandboxed web part. I'm passing a users name in and getting the URL to their Picture. 

The issue I have is that the picture won't display in the web part until the logged in user goes to the MySite web app and authenticates there. 

Any ideas if there is a way to display the picture without the user having to visit MySites in another browser window/tab?

I have tried making an ajax request using jQuery to the MySites URL in code but this doesn't work.

Cheers

Alex

Coordinator
Nov 19, 2012 at 3:51 PM

Alex:

If you're using Windows Auth, you shouldn't see that credential challenge. If not, though, you will because you're hitting a separate Web App. I would expect that you'd see the exact same thing if you navigate from the main Site Collection to MySites in the browser.

M.