Sharepoint 2013 site NTLM authentication javascript doPostBack doesnt work in Safari&iPad

Deadly 提交于 2019-12-23 08:06:07

问题


I have a really interesting problem. We have a site created with sharepoint 2013. We use Windows - NTLM authentication.

In a page includes custom discussionListWebPart, we have a filter button which use javascript doPostBack function with webpart ClientID and filter parameters.

exp: __doPostBack("ClientID","params");

When we do filter, just discussion list webpart do post back and no any request for the any part of Page. That means the page does not reload. This is what we expected.

It works fine in the IE 10 and chrome. Whatsmore, we have problem when we open this page in any ipad. The filter button which we use __doPostBack reloads the page. Also have problem in safari on desktop.

--I controlled the IIS (8) windows authentication providers, there is just NTLM (No negatiate).

-- I found another discussion iOS 8 / Safari 8 not working with ASP.NET AJAX-Extensions.

When I open the site in safari everytime it asks for user credentials. If I say remember password doPostBack works fine.

But I can not do this in ipad. So The problem still exists.

I dont see any console error in dvl tool. But It does not do postBack. Just refresh the page.

Please help to solve this problem. Thanks.


回答1:


I think your problem isn't with the postback, I think the problem is iOS has limited (no?) support for NTLM. A quick search shows me a whole mess of people who have encountered this issue and addressed it in different ways:

  1. Extend your SharePoint web application into an alternate zone
  2. Write an iOS app to handle the authentication manually for you
  3. Change the authentication on the SharePoint site to ADFS or something more iOS-friendly

None of these are the silver bullet your looking for, and they all involve you changing much more than just the code on your web site, but hopefully it'll point you in the right direction in the event there's no "easy button."

Edit: Grammar



来源:https://stackoverflow.com/questions/32242853/sharepoint-2013-site-ntlm-authentication-javascript-dopostback-doesnt-work-in-sa

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!