访问SharePoint Provider Hosted Web App时的双重登录提示 [英] Double login prompt when accessing SharePoint Provider Hosted Web App

查看:103
本文介绍了访问SharePoint Provider Hosted Web App时的双重登录提示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了一个ASP.NET MVC应用程序作为提供者托管的Web应用程序并部署到SharePoint 2013门户。根据MSDN中的配置文章,.net Web应用程序具有不同的域名,例如intraApp.com域上的SpApp.intranet.com和SharePoint门户网站是


要在浏览器Edge或Chrome中访问Web应用程序,它将提示两次登录。第一次登录SharePoint门户,然后第二次登录Web App。  我知道将Web应用程序和Portal域添加到
的常见解决方案IE浏览器设置中的安全选项卡可以解决双提示登录问题。


是否还有其他解决方案解决问题?因为我们有一些海外用户的默认登录域与上面的Web应用程序和SharePoint域不同,所以上面添加域解决方案对他们来说不起作用,并且当
访问Web应用程序时,他们仍然会获得登录提示。 / p>

有任何建议吗?


 


解决方案

嗨琳达,


一防止多次登录提示的解决方案是在提供商托管应用程序中使用仅限app的身份验证,如下所示:



它将使用仅限应用程序的身份验证而不是用户凭据,因此它不会弹出登录凭证。


请参阅以下演示,以使用提供托管应用程序中的仅限应用凭据:


SharePoint 2013 App only Policy Made easy


该应用程序-only凭证需要从此网址注册应用客户端ID和密码:

 https://domain/sites/sitename/_layouts/15/appregnew.aspx 

请从此处查看注册应用程序的详细信息:


使用SharePoint App-Only授予访问权限


这是一个类似的线程供您参考:


提供商主机应用程序获取Windows登录提示


谢谢


最好的问候


I developed a ASP.NET MVC application as a provider hosted web app and deployed to a SharePoint 2013 Portal. According to the configuration article in MSDN, the .net Web app has different domain name e.g. SpApp.intranet.com, and the SharePoint portal is on intranet.com domain.

To access the Web app in browser Edge or Chrome, it will prompt two times login. First time is login to SharePoint portal, and then second time is login to the Web App.   I knew the common solution that adding both the Web app and Portal domains to the security Tab in the IE browser settings can resolve the double prompt login problem.

Is any other solution to resolve the issue? Because we have some overseas users's default login domain is different from above Web app and SharePoint domain, and so above adding domain solution doesn't work out for them, and they still get login prompt when accessing the web app.

Any suggestions?

 

解决方案

Hi Linda,

One solution to prevent multiple times login prompt is to use app-only authentication in Provider Hosted App like this:

It will use app-only authentication instead of user credential, so it will not pop up login credential.

Please see the following demos to use app-only credential in Provide Hosted App:

SharePoint 2013 App Only Policy Made Easy

The app-only credential needs to register app client Id and secret from this url:

https://domain/sites/sitename/_layouts/15/appregnew.aspx

Please see details to register app from here:

Granting access using SharePoint App-Only

Here is a similiar thread for your reference:

Provider host app getting windows logon prompt

Thanks

Best Regards


这篇关于访问SharePoint Provider Hosted Web App时的双重登录提示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆