页面查看器 webpart 不会采用登录参数 [英] Page viewer webpart won't take login parameters

查看:9
本文介绍了页面查看器 webpart 不会采用登录参数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要通过我们的 sharepoint 门户显示一个外部站点,并添加了一个页面查看器 Web 部件.问题是该地址包含用于自动登录外部站点的登录名和密码,但 Sharepoint 仅在点击时显示登录页面.

I need to show an external site through our sharepoint portal and have added a Page viewer web part. The problem is that the address includes a login and password used to autologin to the external site but Sharepoint only shows the login page on click.

如果我单击 Web 部件属性中的测试链接",它会按原样打开,但会在不同的窗口中打开,而不是在共享点框架中.

If I click the "Test link" in the web part properties it opens as it should but in a different window and not in the sharepoint frame.

地址的格式为 http://www.site.com/companyname/Login.aspx?style=companyname&lang=en&l=login&p=password

如何让自动登录在我的 webparts 页面上使用的框架中工作?

How can I get the autologin to work in the frame used on my webparts page?

非常感谢任何帮助.

关于马库斯 L

推荐答案

假设您使用的是 Internet Explorer,问题在于 IE 的安全策略.

Assuming you are using Internet Explorer, the problem is with IE's security policies.

页面查看器 Web 部件是基本的,几乎只是使用您提供的 URL 将 IFRAME 标记插入到页面中.这会在子框架中显示您的外部网站.

The Page Viewer Web Part is basic and pretty much just inserts an IFRAME tag into the page with the URL you have supplied. This displays your external site in a child frame.

默认情况下,子框架无法存储供父框架使用的 cookie.您传递到外部站点的 URL 包含用户名和密码,这很好,但是该站点需要存储 cookie,以便在您浏览其中的其他页面时知道您已登录.由于它无法存储 cookie,因此子站点假定您尚未登录.

By default, child frames cannot store cookies for use by the parent. The URL you are passing through to the external site contains the username and password which is fine, however the site needs to store a cookie so it knows you have logged in as you browse other pages within it. As it can't store the cookie, the child site assumes you have not logged in.

您可以通过将外部站点添加到 IE 中的受信任站点列表并将受信任站点安全性设置为低来测试这一点.然后它应该能够存储它需要的 cookie.或者,如果您可以控制外部站点,这篇知识库文章可能会对您有所帮助.

You could test this by adding the external site to your Trusted Sites list in IE and set the Trusted Site security to Low. Then it should be able to store the cookies it needs. Alternatively if you have control over the external site, this KB article may help you.

这篇关于页面查看器 webpart 不会采用登录参数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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