Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Alain Knaff
Iframe portlet does not store "form" config parameters
December 7, 2011 5:12 AM
Answer

Alain Knaff

Rank: New Member

Posts: 2

Join Date: December 7, 2011

Recent Posts

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
December 7, 2011 9:15 AM
Answer

Alain Knaff

Rank: New Member

Posts: 2

Join Date: December 7, 2011

Recent Posts

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?