Fórum

IFrame Authentication

abdulmalek alsaati, modificado 14 Anos atrás.

IFrame Authentication

New Member Postagens: 4 Data de Entrada: 18/07/09 Postagens Recentes
hi liferay people

i'm new in liferay and i want to put an IFrame in a page and to pass it the current logged in user and password, can i do that..

example:

user logged in to liferay page as (username: joe) and ( password :123) , this lead to pass (username: joe) and (password: 123) to IFrame Authentication..

is there a way to do that ..

thanks
Umesh Gajanan Bongale, modificado 14 Anos atrás.

RE: IFrame Authentication

Junior Member Postagens: 26 Data de Entrada: 30/10/07 Postagens Recentes
Suppose user logged-in using his/her email Id,

Get user email id in jsp page

<%=user.getEmailAddress()%>

and append user id to src of IFrame.

e.g

<iframe id="myIframe" src="www.myapps.com?userId=myuserid&passwd=pwd">

Go through this for more details,
Personalization - Getting current user attributes

http://www.liferay.com/web/raymond.auge/blog/-/blogs/[howto]-personalization-getting-current-user-attributes;jsessionid=37C68420813901C49070437785FC181F


Thanks
Umesh Bongale
abdulmalek alsaati, modificado 14 Anos atrás.

RE: IFrame Authentication

New Member Postagens: 4 Data de Entrada: 18/07/09 Postagens Recentes
thank u [ Umesh Gajanan Bongale ], u save my time..