Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
[SOLVED] Passing User Name and Password to an IFrame Branden Boucher February 27, 2012 3:41 AM
RE: Passing User Name and Password to an IFrame Branden Boucher December 23, 2009 8:43 AM
RE: Passing User Name and Password to an IFrame Jason Morton August 18, 2010 7:09 AM
RE: Passing User Name and Password to an IFrame Patrice Laramee January 31, 2011 11:33 AM
RE: Passing User Name and Password to an IFrame James Falkner January 31, 2011 11:56 AM
RE: Passing User Name and Password to an IFrame Alexandre Sarrazin January 30, 2012 5:44 AM
RE: Passing User Name and Password to an IFrame Hitoshi Ozawa January 30, 2012 5:51 AM
RE: Passing User Name and Password to an IFrame Alexandre Sarrazin January 30, 2012 6:01 AM
RE: Passing User Name and Password to an IFrame Olaf Kock January 30, 2012 6:05 AM
RE: Passing User Name and Password to an IFrame Alexandre Sarrazin January 30, 2012 6:34 AM
RE: Passing User Name and Password to an IFrame Olaf Kock January 30, 2012 7:05 AM
RE: Passing User Name and Password to an IFrame Alexandre Sarrazin January 30, 2012 8:11 AM
RE: Passing User Name and Password to an IFrame Alexandre Sarrazin January 31, 2012 2:25 AM
RE: Passing User Name and Password to an IFrame chandan B November 4, 2014 11:52 PM
RE: Passing User Name and Password to an IFrame Mohamed Rizwanuzaman February 27, 2012 4:11 AM
RE: Passing User Name and Password to an IFrame liu sam March 29, 2012 2:43 AM
RE: Passing User Name and Password to an IFrame Justin Jiang June 13, 2013 8:53 PM
RE: Passing User Name and Password to an IFrame Ilove Liferay December 25, 2013 8:02 PM
RE: [SOLVED] Passing User Name and Password to an IFrame michael hamlett November 11, 2014 6:48 AM
RE: [SOLVED] Passing User Name and Password to an IFrame chandan B January 7, 2015 1:47 AM
Branden Boucher
[SOLVED] Passing User Name and Password to an IFrame
February 27, 2012 3:41 AM
Answer

Branden Boucher

Rank: New Member

Posts: 11

Join Date: September 14, 2009

Recent Posts

I have been researching how to pass the user name and password to an IFrame and I noticed three issues.

First, if there are multiple IFrames on one page and one of them is switched to use Form authentication, the other IFrames on the page are also affected and they all try to show the same page. Is there a fix for this?

Second, even when you are just testing and only have one IFrame on the page that is switched to use basic authentication, you have to hard code in the login. If you switch to Form type authentication, there is no way to pass in the user name and password (or even just the user name) that was used by the user when he/she logged in to liferay. I did notice an updated proxy.jsp had been created and I tried using that, but it did not work. And that is where the Third issue comes in.

Third, when I tried to use the updated proxy.jsp file and it didn't work, I backed up the file and tried modifying it to throw in some test code. I then noticed when I tried to revert back to the backup file, the debug info still showed up. I later found the code modifications I had made inside of a proxy_jsp.class file. I am really worried that if I tried to make more changes, I will not be able to revert back to a backup. Can someone explain what is going on here?

Please help me on these issues as they are stopping us from continuing on with some intended projects for Liferay.
Branden Boucher
RE: Passing User Name and Password to an IFrame
December 23, 2009 8:43 AM
Answer

Branden Boucher

Rank: New Member

Posts: 11

Join Date: September 14, 2009

Recent Posts

I know that there are some other threads on some of these issues but I have not found my answers yet. Anyone else out there in the same boat?
Jason Morton
RE: Passing User Name and Password to an IFrame
August 18, 2010 7:09 AM
Answer

Jason Morton

Rank: Junior Member

Posts: 31

Join Date: August 18, 2010

Recent Posts

I am having a similar issue. I am in an iFrame, using form auth, method POST. I am getting the username but the password is coming up blank.


field name: username value: @email_address@
field name: password value: @password@


result:

username: test@liferay.com
password:
Patrice Laramee
RE: Passing User Name and Password to an IFrame
January 31, 2011 11:33 AM
Answer

Patrice Laramee

Rank: New Member

Posts: 4

Join Date: January 25, 2011

Recent Posts

Jason Morton:
I am having a similar issue. I am in an iFrame, using form auth, method POST. I am getting the username but the password is coming up blank.


field name: username value: @email_address@
field name: password value: @password@


result:

username: test@liferay.com
password:


I experience the same issue. Anyone filled a bug report or it's a known bug/security feature?

Thanks
James Falkner
RE: Passing User Name and Password to an IFrame
January 31, 2011 11:56 AM
Answer

James Falkner

Community Moderator

Rank: Liferay Legend

Posts: 1406

Join Date: September 17, 2010

Recent Posts

Patrice Laramee:
Jason Morton:
I am having a similar issue. I am in an iFrame, using form auth, method POST. I am getting the username but the password is coming up blank.


field name: username value: @email_address@
field name: password value: @password@


result:

username: test@liferay.com
password:


I experience the same issue. Anyone filled a bug report or it's a known bug/security feature?

Thanks


I too noticed this. It's because the "password" field is filled in from session data, and so you have to enable the password to be stored in the session before this field will be correctly filled in.

So set session.store.password=true in your portal-ext.properties.
Alexandre Sarrazin
RE: Passing User Name and Password to an IFrame
January 30, 2012 5:44 AM
Answer

Alexandre Sarrazin

Rank: Junior Member

Posts: 71

Join Date: January 3, 2012

Recent Posts

I don't find my file "portal-ext.properties" where is it ?
Hitoshi Ozawa
RE: Passing User Name and Password to an IFrame
January 30, 2012 5:51 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

I don't find my file "portal-ext.properties" where is it ?


You have to create it under \ROOT\WEB-INF\classes
Try googling around because it's been written in books, wiki, and serveral forum posts already.
Alexandre Sarrazin
RE: Passing User Name and Password to an IFrame
January 30, 2012 6:01 AM
Answer

Alexandre Sarrazin

Rank: Junior Member

Posts: 71

Join Date: January 3, 2012

Recent Posts

Ok, i've my portal-ext.properties , and after i write just this :

session.store.password=true

And after ? emoticon
Olaf Kock
RE: Passing User Name and Password to an IFrame
January 30, 2012 6:05 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3425

Join Date: September 23, 2008

Recent Posts

Alexandre Sarrazin:
I don't find my file "portal-ext.properties" where is it ?



https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/configuring-liferay-s-properties

And you'll have to restart Liferay in order to pick up these changes
Alexandre Sarrazin
RE: Passing User Name and Password to an IFrame
January 30, 2012 6:34 AM
Answer

Alexandre Sarrazin

Rank: Junior Member

Posts: 71

Join Date: January 3, 2012

Recent Posts

Olaf Kock:
Alexandre Sarrazin:
I don't find my file "portal-ext.properties" where is it ?



https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/configuring-liferay-s-properties

And you'll have to restart Liferay in order to pick up these changes



So, if i'm good understand , for use @password@ , it's enough to put "session.store.password=true" ?
beacause it doesn't work.... emoticon
Olaf Kock
RE: Passing User Name and Password to an IFrame
January 30, 2012 7:05 AM
Answer

Olaf Kock

LIFERAY STAFF

Rank: Liferay Legend

Posts: 3425

Join Date: September 23, 2008

Recent Posts

Alexandre Sarrazin:
So, if i'm good understand , for use @password@ , it's enough to put "session.store.password=true" ?
because it doesn't work.... emoticon

Make sure you created portal-ext.properties, not portal-ext.properties.txt if you're on windows and hide your file extensions by default.

You can check if the setting is active by checking it in ControlPanel under "Server/ServerAdministration/portal properties".
Alexandre Sarrazin
RE: Passing User Name and Password to an IFrame
January 30, 2012 8:11 AM
Answer

Alexandre Sarrazin

Rank: Junior Member

Posts: 71

Join Date: January 3, 2012

Recent Posts

The setting is active in ControlPanel but it doesn't work , i don't understand why.

My portal-ext.properties :

session.shared.attributes=org.apache.struts.action.LOCALE,COMPANY_,USER_,LIFERAY_SHARED_,USER_PASSWORD
session.shared.attributes.excludes=
session.store.password=true
session.test.cookie.support=true
session.enable.phishing.protection=false
Alexandre Sarrazin
RE: Passing User Name and Password to an IFrame
January 31, 2012 2:25 AM
Answer

Alexandre Sarrazin

Rank: Junior Member

Posts: 71

Join Date: January 3, 2012

Recent Posts

It work emoticon Thanks all
Mohamed Rizwanuzaman
RE: Passing User Name and Password to an IFrame
February 27, 2012 4:11 AM
Answer

Mohamed Rizwanuzaman

Rank: New Member

Posts: 20

Join Date: December 16, 2009

Recent Posts

What exactly i am looking for. Thanks..Its working. One quick update. If we enable session storing the password any secuirty issue will be there?
liu sam
RE: Passing User Name and Password to an IFrame
March 29, 2012 2:43 AM
Answer

liu sam

Rank: New Member

Posts: 2

Join Date: March 28, 2012

Recent Posts

can you tell me how you wrote your html code?
i tried everything i knew but still cant work...
Justin Jiang
RE: Passing User Name and Password to an IFrame
June 13, 2013 8:53 PM
Answer

Justin Jiang

Rank: New Member

Posts: 1

Join Date: April 12, 2013

Recent Posts

please ensure you didn't enable the CAS authentication.
Ilove Liferay
RE: Passing User Name and Password to an IFrame
December 25, 2013 8:02 PM
Answer

Ilove Liferay

Rank: New Member

Posts: 1

Join Date: December 25, 2013

Recent Posts

I am trying to add an iFrame to a portlet, but I need to pass the user roles that the Liferay user has to the page that I am embedding with the iFrame. Is there a way to do this?

Thank you!
chandan B
RE: Passing User Name and Password to an IFrame
November 4, 2014 11:52 PM
Answer

chandan B

Rank: Junior Member

Posts: 64

Join Date: August 5, 2014

Recent Posts

Alexandre Sarrazin:
It work emoticon Thanks all



How did it Work for you? Please give me the complete solution. I'm currently working on the Iframe. I'm using Liferay portal 6.2 CE.
Should I change in the Portal-ext.properties.
michael hamlett
RE: [SOLVED] Passing User Name and Password to an IFrame
November 11, 2014 6:48 AM
Answer

michael hamlett

Rank: Junior Member

Posts: 30

Join Date: May 23, 2013

Recent Posts

I am on Liferay 6.2
using IFRAME and passing Form Variables
@screen_name@ works
@user_id@ does not work
@email_address@ does not work

in authentication type i put FORM
in form method i put POST
in field name i use Username
in Value i put @screen_name@
this method works

if you use Value of anything else all you get when you retrieve the form variable is the text you put in the VALUE column

Liferay you need to fix this
chandan B
RE: [SOLVED] Passing User Name and Password to an IFrame
January 7, 2015 1:47 AM
Answer

chandan B

Rank: Junior Member

Posts: 64

Join Date: August 5, 2014

Recent Posts

Thanks, Its working correctly now. emoticon