组合视图 统一视图 树状图
讨论主题 [ 上一个 | 下一个 ]
toggle
Alain Knaff
Iframe portlet does not store "form" config parameters
2011年12月7日 上午5:12
答复

Alain Knaff

等级: New Member

帖子: 2

加入日期: 2011年12月7日

最近的帖子

Hello,

I've just tried out the "iframe" portlet with "form" authentication.

When I enter field names and values for user name and password, then save, leave the configuration widget, and re-open it, only field-names are retained, but values are gone. Moreover, when visiting the iframe, it generates a link with http://id:pass@host/path , completely ignoring that I chose form authentication rather than https auth.

Event clicking on Permissions, and then back on Setup is enough to make the values disappear.

Other question: is it possible to use an authentication token to be looked up from an external postgresql database, using the screen name as a key?

Any ideas?

Thanks,

Alain
Alain Knaff
RE: Iframe portlet does not store "form" config parameters
2011年12月7日 上午9:15
答复

Alain Knaff

等级: New Member

帖子: 2

加入日期: 2011年12月7日

最近的帖子

Found out some of what is going on: apparently, GET parameters for "form authentication" are first supposed to be stored into the iframeVariables list. However neither userNameField/userName, nor passwordNameField/password, nor hiddenVariables (for that matter...) are added to this list in init.jsp.

Moreover, the names of the configuration items for userName and password are wrong (they are formUserName and formPassword in the DB, however init.jsp looks for just userName and passWord)

Fixing these issues results in working output as long as the field values are constant. However, variables such as @screen_name@ etc are not substituted.

Could it be that when the archive of this version was build (from http://downloads.sourceforge.net/project/lportal/Liferay%20Portal/6.1.0%20B4/liferay-portal-tomcat-6.1.0-ce-b4-20111110.zip?r=http%3A%2F%2Fwww.liferay.com%2Fdownloads%2Fliferay-portal%2Favailable-releases&ts=1323278081&use_mirror=heanet), mismatched files of 2 different versions were included?